]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixes git command (#451) (#452)
authorSteve Dower <steve.dower@microsoft.com>
Sat, 4 Mar 2017 05:57:47 +0000 (21:57 -0800)
committerGitHub <noreply@github.com>
Sat, 4 Mar 2017 05:57:47 +0000 (21:57 -0800)
PCbuild/pythoncore.vcxproj

index 8f8bede8a8818ebdc76380f797b0f1b336c9bed8..d7e9473638cbb2cfb3329f64b6efb68325f3e8eb 100644 (file)
     <MakeDir Directories="$(IntDir)" Condition="!Exists($(IntDir))" />
     <Exec Command="$(_GIT) name-rev --name-only HEAD &gt; &quot;$(IntDir)gitbranch.txt&quot;" ContinueOnError="true" />
     <Exec Command="$(_GIT) rev-parse HEAD &gt; &quot;$(IntDir)gitversion.txt&quot;" ContinueOnError="true" />
-    <Exec Command="$(_GIT) name-rev --tags --name id -t &gt; &quot;$(IntDir)gittag.txt&quot;" ContinueOnError="true" />
+    <Exec Command="$(_GIT) name-rev --tags --name-only HEAD &gt; &quot;$(IntDir)gittag.txt&quot;" 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>