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

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