Skip to content

Commit

Permalink
Fix incremental build
Browse files Browse the repository at this point in the history
By fixing _GitInput items to contain existing files only with correct
path separator.

Fixes devlooped#81
  • Loading branch information
shadow-cs committed Nov 1, 2018
1 parent 5c1b5bc commit 7c21e49
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/GitInfo/build/GitInfo.targets
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,14 @@
</Target>

<Target Name="_GitInputs" DependsOnTargets="_GitRoot" Returns="@(_GitInput)">
<PropertyGroup>
<_GitPackedRefs>$([System.IO.Path]::Combine('$(GitDir)', 'packed-refs'))</_GitPackedRefs>
</PropertyGroup>
<ItemGroup>
<_GitInput Include="$(GitDir)HEAD" />
<_GitInput Include="$([System.IO.Path]::Combine('$(GitDir)', 'HEAD'))" />
<_GitInput Include="$(GitVersionFile)" Condition="Exists('$(GitVersionFile)')" />
</ItemGroup>
<CreateItem Include="$([System.IO.Path]::Combine('$(GitDir)', 'packed-refs'))">
<CreateItem Include="$(_GitPackedRefs)" Condition="Exists('$(_GitPackedRefs)')">
<Output ItemName="_GitInput" TaskParameter="Include" />
</CreateItem>
<CreateItem Include="$([System.IO.Path]::Combine('$(GitDir)', 'refs', 'heads', '**', '*.*'))">
Expand Down

0 comments on commit 7c21e49

Please sign in to comment.