diff --git a/src/Tgstation.Server.Host/Components/Repository/Repository.cs b/src/Tgstation.Server.Host/Components/Repository/Repository.cs index 6608fcd753..d9d0daaa8d 100644 --- a/src/Tgstation.Server.Host/Components/Repository/Repository.cs +++ b/src/Tgstation.Server.Host/Components/Repository/Repository.cs @@ -381,6 +381,10 @@ namespace Tgstation.Server.Host.Components.Repository { cancellationToken.ThrowIfCancellationRequested(); } + catch(LibGit2SharpException e) + { + logger.LogWarning("Unable to push to temporary branch! Exception: {0}", e); + } } finally { @@ -581,6 +585,11 @@ namespace Tgstation.Server.Host.Components.Repository cancellationToken.ThrowIfCancellationRequested(); throw new InvalidOperationException("Caught UserCancelledException without cancellationToken triggering", e); } + catch (LibGit2SharpException e) + { + logger.LogWarning("Unable to make synchronization push! Exception: {0}", e); + return false; + } }, cancellationToken, TaskCreationOptions.LongRunning, TaskScheduler.Current).ConfigureAwait(false); }