Browse Source

Correct short git commit hash in version string to be at the beginning of the full hash, not the end

tags/v0.1
Starbeamrainbowlabs 3 years ago
parent
commit
ef3561c9ac
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      SpritePacker/Program.cs

+ 1
- 1
SpritePacker/Program.cs View File

@@ -40,7 +40,7 @@ namespace SpritePacker
40 40
 		public static int Main(string[] args)
41 41
 		{
42 42
 			string commitHash = Utilities.GetEmbeddedResourceContent(commitHashFilename).Trim();
43
-			Version += "-" + commitHash.Substring(commitHash.Length - 7);
43
+			Version += "-" + commitHash.Substring(0, 7);
44 44
 
45 45
 			for(int i = 0; i < args.Length; i++)
46 46
 			{

Loading…
Cancel
Save