Added exception handling in git exec method, check for statusCode 0