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

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