fix: properly get long commit hash from git

This commit is contained in:
spiral 2021-11-08 10:48:45 -05:00
parent b273b49533
commit 2a7d4ff97d
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31
2 changed files with 1 additions and 5 deletions

View File

@ -52,7 +52,7 @@
</ItemGroup> </ItemGroup>
<Target Name="SetSourceRevisionId" BeforeTargets="InitializeSourceControlInformation"> <Target Name="SetSourceRevisionId" BeforeTargets="InitializeSourceControlInformation">
<Exec Command="git describe --long --always --dirty --exclude=* > ../.version" IgnoreExitCode="False"> <Exec Command="git log -1 --format='%H' > ../.version" IgnoreExitCode="False">
</Exec> </Exec>
</Target> </Target>

View File

@ -22,10 +22,6 @@ namespace PluralKit.Core
// show only short commit hash to users // show only short commit hash to users
Version = FullVersion.Remove(7); Version = FullVersion.Remove(7);
// fix "dirty" git message
if (FullVersion.EndsWith("-dirty"))
Version += "-dirty";
} }
} }
} }