Browse Source

Fix usage of GitDownloader with relative paths, fixes #1843

Jordi Boggiano 12 years ago
parent
commit
343d4effaa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Downloader/GitDownloader.php

+ 1 - 1
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)) {