Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,14 @@ public virtual CommandResult Run(string arguments, string workingDirectory)
}
}
}
// exceptions caught here will be to do with inability to start the git process
// otherwise all "error" states should be handled by the output to stdErr and non-zero exitcode.
catch (Exception e)
// exceptions caught here will be to do with inability to recover from a failed git process
// rather than endlessly retrying and concealing the git error from the user, immediately report and exit the process with an error code
catch (GitProcessException e)
{
DebugLogger.LogDebug(e.Message);

result.ExitCode = -1;
result.CommandException = e;
DebugLogger.LogError("Git ran into an unrecoverable error and had to exit. The error output from git is: ");
DebugLogger.LogError(e.Result.StdErr);

throw new GitProcessException(result);
Environment.Exit(1);
}
});

Expand Down
Loading