From 343d4effaac3274ce1b8e7c64624f85c977ccb26 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 29 Apr 2013 17:27:02 +0200 Subject: [PATCH] Fix usage of GitDownloader with relative paths, fixes #1843 --- src/Composer/Downloader/GitDownloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {