mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[git] don't rely on the error output to identify if Git command failed. Check only the exit code.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user