refactor: Log git error message on clone retry

pull/151/head
Robert Dailey 1 year ago
parent ff97d6cb24
commit ebb33f3328

@ -39,8 +39,9 @@ public class RepoUpdater : IRepoUpdater
{
await CheckoutAndUpdateRepo();
}
catch (GitCmdException)
catch (GitCmdException e)
{
_log.Debug(e, "Non-zero exit code {ExitCode} while executing Git command: {Error}", e.ExitCode, e.Error);
_log.Warning("Deleting local git repo and retrying git operation due to error...");
_fileUtils.DeleteReadOnlyDirectory(RepoPath.FullName);
await CheckoutAndUpdateRepo();

Loading…
Cancel
Save