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

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