From 9349b12a60786be29f79e5c5a1283c512ba43d78 Mon Sep 17 00:00:00 2001 From: Toru the Red Fox Date: Sat, 23 Jul 2022 15:22:59 +0100 Subject: [PATCH] pls work --- ProjectLighthouse/Helpers/VersionHelper.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ProjectLighthouse/Helpers/VersionHelper.cs b/ProjectLighthouse/Helpers/VersionHelper.cs index 0e331b99..7bbac6f4 100644 --- a/ProjectLighthouse/Helpers/VersionHelper.cs +++ b/ProjectLighthouse/Helpers/VersionHelper.cs @@ -11,7 +11,9 @@ public static class VersionHelper try { CommitHash = ResourceHelper.ReadManifestFile("gitVersion.txt"); - Branch = $"{ResourceHelper.ReadManifestFile("gitBranch.txt")}{((IsDirty) ? "-dirty" : "")}"; + string DirtyVerString = (IsDirty) ? "-dirty" : ""; + string _Branch = ResourceHelper.ReadManifestFile("gitBranch.txt"); + Branch = $"{_Branch}{DirtyVerString}"; string rawRevision = ResourceHelper.ReadManifestFile("gitRevCount.txt"); Revision = (Branch == "main") ? $"r{rawRevision}" : $"{Branch}_r{rawRevision}";