Blame SOURCES/command-line-api-use-work-tree-with-git-apply.patch

2e7fc5
From 7a752928ed3588246c4b296feb6cf4946f1b29b7 Mon Sep 17 00:00:00 2001
2e7fc5
From: Omair Majid <omajid@redhat.com>
2e7fc5
Date: Thu, 9 Sep 2021 12:11:39 -0400
2e7fc5
Subject: [PATCH] [ArPow] Use --work-tree with git apply
2e7fc5
2e7fc5
This makes things work better in a source-tarball build, where there may
2e7fc5
be a .git directory but it's for a different repo than command-line-api.
2e7fc5
---
2e7fc5
 eng/SourceBuild.props | 2 +-
2e7fc5
 1 file changed, 1 insertion(+), 1 deletion(-)
2e7fc5
2e7fc5
diff --git a/eng/SourceBuild.props b/eng/SourceBuild.props
2e7fc5
index 6cc85018..5e223747 100644
2e7fc5
--- a/eng/SourceBuild.props
2e7fc5
+++ b/eng/SourceBuild.props
2e7fc5
@@ -15,7 +15,7 @@
2e7fc5
     </ItemGroup>
2e7fc5
 
2e7fc5
     
2e7fc5
-      Command="git apply --ignore-whitespace --whitespace=nowarn "%(SourceBuildPatchFile.FullPath)""
2e7fc5
+      Command="git --work-tree="$(RepoRoot)" apply --ignore-whitespace --whitespace=nowarn "%(SourceBuildPatchFile.FullPath)""
2e7fc5
       WorkingDirectory="$(RepoRoot)"
2e7fc5
       Condition="'@(SourceBuildPatchFile)' != ''" />
2e7fc5
   </Target>
2e7fc5
-- 
2e7fc5
2.31.1
2e7fc5