diff --git a/src/GitInfo/build/GitInfo.targets b/src/GitInfo/build/GitInfo.targets index 0c56240..6cac151 100644 --- a/src/GitInfo/build/GitInfo.targets +++ b/src/GitInfo/build/GitInfo.targets @@ -145,9 +145,6 @@ <_GitIsDirtyFile>$(GitCachePath)GitIsDirty.cache - - - <_GitHeadFile>$(GitCachePath)GitHead.cache @@ -352,20 +349,21 @@ + <_GitHead>$([System.IO.Path]::Combine('$(GitDir)', 'HEAD')) + <_GitLogsHead>$([System.IO.Path]::Combine('$(GitDir)', 'logs', 'HEAD')) <_GitPackedRefs>$([System.IO.Path]::Combine('$(GitDir)', 'packed-refs')) - <_GitInput Include="$([System.IO.Path]::Combine('$(GitDir)', 'HEAD'))" /> - <_GitInput Include="$(GitVersionFile)" Condition="Exists('$(GitVersionFile)')" /> - <_GitInput Include="$(_GitIsDirtyFile)" Condition="Exists('$(_GitIsDirtyFile)')" /> + <_GitInput Include="$(GitVersionFile)" Condition="Exists('$(GitVersionFile)')" Utdc="true" /> + <_GitInput Include="$(_GitIsDirtyFile)" Condition="Exists('$(_GitIsDirtyFile)')" Utdc="true" /> + <_GitInput Include="$(_GitHead)" Condition="Exists('$(_GitHead)')" Utdc="true" /> + <_GitInput Include="$(_GitLogsHead)" Condition="Exists('$(_GitLogsHead)')" Utdc="true" /> + <_GitInput Include="$(_GitPackedRefs)" Condition="Exists('$(_GitPackedRefs)')" Utdc="true" /> - - - - + - + @@ -974,23 +972,18 @@ - - - - - + + + + + + - - - - - - - - + + + +