diff --git a/src/Composer/Downloader/GitDownloader.php b/src/Composer/Downloader/GitDownloader.php index 27da12f94..1686beebb 100644 --- a/src/Composer/Downloader/GitDownloader.php +++ b/src/Composer/Downloader/GitDownloader.php @@ -272,7 +272,7 @@ class GitDownloader extends VcsDownloader { if ($initialClone) { $origCwd = $cwd; - $cwd = dirname($cwd); + $cwd = null; } if (preg_match('{^ssh://[^@]+@[^:]+:[^0-9]+}', $url)) {