Browse Source

Fix var name

Jordi Boggiano 11 years ago
parent
commit
1ce419cc43
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Util/Git.php

+ 1 - 1
src/Composer/Util/Git.php

@@ -46,7 +46,7 @@ class Git
 
 
         if (!$initialClone) {
         if (!$initialClone) {
             // capture username/password from URL if there is one
             // capture username/password from URL if there is one
-            $this->process->execute('git remote -v', $output, $path);
+            $this->process->execute('git remote -v', $output, $cwd);
             if (preg_match('{^(?:composer|origin)\s+https?://(.+):(.+)@([^/]+)}im', $output, $match)) {
             if (preg_match('{^(?:composer|origin)\s+https?://(.+):(.+)@([^/]+)}im', $output, $match)) {
                 $this->io->setAuthentication($match[3], urldecode($match[1]), urldecode($match[2]));
                 $this->io->setAuthentication($match[3], urldecode($match[1]), urldecode($match[2]));
             }
             }