From 6949f7bec9d5f9822efab5366119fe7d5f1c7cd1 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Sat, 11 Sep 2021 15:09:17 -0400 Subject: [PATCH] Fix NullReferenceException [TGSDeploy] --- src/Tgstation.Server.Host/Components/Instance.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Tgstation.Server.Host/Components/Instance.cs b/src/Tgstation.Server.Host/Components/Instance.cs index 6d5378dc93..776a9ac57f 100644 --- a/src/Tgstation.Server.Host/Components/Instance.cs +++ b/src/Tgstation.Server.Host/Components/Instance.cs @@ -330,8 +330,7 @@ namespace Tgstation.Server.Host.Components logger.LogInformation(Repository.Repository.OriginTrackingErrorTemplate, currentHead); onOrigin = true; } - - if (currentRevInfo.CommitSha == currentHead) + else if (currentRevInfo.CommitSha == currentHead) { logger.LogTrace("Not updating rev-info, already in DB."); return;