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

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