Added checks for git process calls.