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

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