Skip to content

Commit 43be769

Browse files
omajidjonsequitur
authored andcommitted
[ArPow] Use --work-tree with git apply
This makes things work better in a source-tarball build, where there may be a .git directory but it's for a different repo than command-line-api.
1 parent e020f17 commit 43be769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/SourceBuild.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</ItemGroup>
1616

1717
<Exec
18-
Command="git apply --ignore-whitespace --whitespace=nowarn &quot;%(SourceBuildPatchFile.FullPath)&quot;"
18+
Command="git --work-tree=$(RepoRoot) apply --ignore-whitespace --whitespace=nowarn &quot;%(SourceBuildPatchFile.FullPath)&quot;"
1919
WorkingDirectory="$(RepoRoot)"
2020
Condition="'@(SourceBuildPatchFile)' != ''" />
2121
</Target>

0 commit comments

Comments
 (0)