diff --git a/src/Composer/Repository/Vcs/GitDriver.php b/src/Composer/Repository/Vcs/GitDriver.php index 1900c6321..8c6902298 100644 --- a/src/Composer/Repository/Vcs/GitDriver.php +++ b/src/Composer/Repository/Vcs/GitDriver.php @@ -225,7 +225,7 @@ class GitDriver extends VcsDriver try { $gitUtil->runCommand(function ($url) { return 'git ls-remote --heads ' . ProcessExecutor::escape($url); - }, $url, null); + }, $url, sys_get_temp_dir()); } catch (\RuntimeException $e) { return false; }