Blame SOURCES/nuget-client-use-work-tree-with-git-apply.patch

8c3e2c
From 691babb1c8316e2f829fbcf9f2aa14f4b7711960 Mon Sep 17 00:00:00 2001
8c3e2c
From: Omair Majid <omajid@redhat.com>
8c3e2c
Date: Thu, 9 Sep 2021 10:03:36 -0400
8c3e2c
Subject: [PATCH] [ArPow] Use --work-tree with git apply
8c3e2c
8c3e2c
This makes things work bettern in a source-tarball build (where there
8c3e2c
may not be a .git directory), or there might be a .git directory but
8c3e2c
it's for a different repo than the one we are building.
8c3e2c
---
8c3e2c
 eng/source-build/source-build.proj | 2 +-
8c3e2c
 1 file changed, 1 insertion(+), 1 deletion(-)
8c3e2c
8c3e2c
diff --git a/eng/source-build/source-build.proj b/eng/source-build/source-build.proj
8c3e2c
index 6f90f9793..72058ac88 100644
8c3e2c
--- a/eng/source-build/source-build.proj
8c3e2c
+++ b/eng/source-build/source-build.proj
8c3e2c
@@ -55,7 +55,7 @@
8c3e2c
     </ItemGroup>
8c3e2c
 
8c3e2c
     
8c3e2c
-      Command="git apply --ignore-whitespace --whitespace=nowarn "%(SourceBuildPatchFile.FullPath)""
8c3e2c
+      Command="git --work-tree="$(ProjectRoot)" apply --ignore-whitespace --whitespace=nowarn "%(SourceBuildPatchFile.FullPath)""
8c3e2c
       WorkingDirectory="$(ProjectRoot)"
8c3e2c
       Condition="'@(SourceBuildPatchFile)' != ''" />
8c3e2c
   </Target>
8c3e2c
-- 
8c3e2c
2.31.1
8c3e2c