Wait git process finished