Fixes git command (#451)
This commit is contained in:
parent
a0c07d2edd
commit
7030ca65de
|
@ -416,7 +416,7 @@
|
|||
<MakeDir Directories="$(IntDir)" Condition="!Exists($(IntDir))" />
|
||||
<Exec Command="$(_GIT) name-rev --name-only HEAD > "$(IntDir)gitbranch.txt"" ContinueOnError="true" />
|
||||
<Exec Command="$(_GIT) rev-parse HEAD > "$(IntDir)gitversion.txt"" ContinueOnError="true" />
|
||||
<Exec Command="$(_GIT) name-rev --tags --name id -t > "$(IntDir)gittag.txt"" ContinueOnError="true" />
|
||||
<Exec Command="$(_GIT) name-rev --tags --name-only HEAD > "$(IntDir)gittag.txt"" ContinueOnError="true" />
|
||||
<PropertyGroup>
|
||||
<GitBranch Condition="Exists('$(IntDir)gitbranch.txt')">$([System.IO.File]::ReadAllText('$(IntDir)gitbranch.txt').Trim())</GitBranch>
|
||||
<GitVersion Condition="Exists('$(IntDir)gitversion.txt')">$([System.IO.File]::ReadAllText('$(IntDir)gitversion.txt').Trim())</GitVersion>
|
||||
|
|
Loading…
Reference in New Issue