From d95d95bfe730b7145a1d27c04bbf27a836d17baf Mon Sep 17 00:00:00 2001 From: daften Date: Sun, 26 Feb 2017 16:24:35 +0100 Subject: [PATCH] Use --git-dir instead of GIT_DIR env variable --- src/Patches.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Patches.php b/src/Patches.php index f0a014a7..4140fd40 100644 --- a/src/Patches.php +++ b/src/Patches.php @@ -358,10 +358,10 @@ protected function getAndApplyPatch(RemoteFilesystem $downloader, $install_path, // it might be useful. $patch_levels = array('-p1', '-p0', '-p2'); foreach ($patch_levels as $patch_level) { - $checked = $this->executeCommand('cd %s && git apply --check %s %s', $install_path, $patch_level, $filename); + $checked = $this->executeCommand('cd %s && git --git-dir=. apply --check %s %s', $install_path, $patch_level, $filename); if ($checked) { // Apply the first successful style. - $patched = $this->executeCommand('cd %s && git apply %s %s', $install_path, $patch_level, $filename); + $patched = $this->executeCommand('cd %s && git --git-dir=. apply %s %s', $install_path, $patch_level, $filename); break; } }