Skip to content

Commit f0d4b45

Browse files
authored
VersionChecker: ignore dirty Git hashes for continuous releases (#714)
When git hash ends with dirty, it means that some files were modified during compilation and the changes weren't commited. Release artifacts are not supposed to be dirty, so this works during local development
1 parent 4da489c commit f0d4b45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/Client/Util/VersionChecker.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ public static void Init()
3737

3838
private static bool isContinuousRelease =
3939
Multiplayer.modContentPack.ModMetaData.Source == ContentSource.ModsFolder &&
40-
MpVersion.GitDescription?.StartsWith("continuous") == true;
40+
MpVersion.GitDescription?.StartsWith("continuous") == true &&
41+
MpVersion.GitHash?.EndsWith("dirty") == false;
4142

4243
private static async Task<Release?> GetLatestContinuousRelease()
4344
{

0 commit comments

Comments
 (0)