From b029831d0c5b39d630031f782981db2876ce8490 Mon Sep 17 00:00:00 2001 From: Toru the Red Fox Date: Wed, 27 Jul 2022 20:12:38 +0100 Subject: [PATCH] remove redundancy when dirty --- ProjectLighthouse/Configuration/ServerConfiguration.cs | 2 +- ProjectLighthouse/Helpers/VersionHelper.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ProjectLighthouse/Configuration/ServerConfiguration.cs b/ProjectLighthouse/Configuration/ServerConfiguration.cs index 6a8f08fd..f7d4aa05 100644 --- a/ProjectLighthouse/Configuration/ServerConfiguration.cs +++ b/ProjectLighthouse/Configuration/ServerConfiguration.cs @@ -23,7 +23,7 @@ public class ServerConfiguration // You can use an ObsoleteAttribute instead. Make sure you set it to error, though. // // Thanks for listening~ - public const int CurrentConfigVersion = 9; + public const int CurrentConfigVersion = 10; #region Meta diff --git a/ProjectLighthouse/Helpers/VersionHelper.cs b/ProjectLighthouse/Helpers/VersionHelper.cs index f3b0a0c5..c3d5c311 100644 --- a/ProjectLighthouse/Helpers/VersionHelper.cs +++ b/ProjectLighthouse/Helpers/VersionHelper.cs @@ -63,7 +63,8 @@ public static class VersionHelper "Please make sure you are properly disclosing the source code to any users who may be using this instance.", LogArea.Startup ); - OrdinalCommitNumber = $"{Branch}-dirty_r{commitNumber}"; + if (ServerConfiguration.Instance.Customization.UseLessReliableNumericRevisionNumberingSystem) // remove redundancy + OrdinalCommitNumber = $"{Branch}-dirty_r{commitNumber}"; CanCheckForUpdates = false; } }