[git] don't rely on the error output to identify if Git command failed. Check only the exit code.

This commit is contained in:
Kirill Likhodedov
2015-09-01 12:29:03 +03:00
parent d88dca667d
commit 6f03286536
@@ -625,7 +625,7 @@ public class GitImpl implements Git {
handler.runInCurrentThread(null);
authFailed = handler.hasHttpAuthFailed();
success = !startFailed.get() && errorOutput.isEmpty() && (handler.isIgnoredErrorCode(exitCode.get()) || exitCode.get() == 0);
success = !startFailed.get() && (handler.isIgnoredErrorCode(exitCode.get()) || exitCode.get() == 0);
}
while (authFailed && authAttempt++ < 2);
return new GitCommandResult(success, exitCode.get(), errorOutput, output, null);