Skip to content

Commit

Permalink
track packed-refs as refs/heads may be empty when "packed-refs -all" …
Browse files Browse the repository at this point in the history
…have been used.
  • Loading branch information
zaptech\jun.zhu committed May 15, 2017
1 parent 524a13d commit 1a566b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/GitInfo/build/GitInfo.targets
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,10 @@
<ItemGroup>
<_GitInput Include="$(GitDir)HEAD" />
<_GitInput Include="$(GitVersionFile)" Condition="Exists('$(GitVersionFile)')" />
</ItemGroup>
</ItemGroup>
<CreateItem Include="$([System.IO.Path]::Combine('$(GitDir)', 'packed-refs'))">
<Output ItemName="_GitInput" TaskParameter="Include" />
</CreateItem>
<CreateItem Include="$([System.IO.Path]::Combine('$(GitDir)', 'refs', 'heads', '**', '*.*'))">
<Output ItemName="_GitInput" TaskParameter="Include" />
</CreateItem>
Expand Down

0 comments on commit 1a566b8

Please sign in to comment.