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

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