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

This commit is contained in:
Starbeamrainbowlabs 2016-05-25 12:06:17 +01:00
parent 4bf87914ce
commit ef3561c9ac

View file

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