瀏覽代碼

Fix var name

Jordi Boggiano 11 年之前
父節點
當前提交
1ce419cc43
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Util/Git.php

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

@@ -46,7 +46,7 @@ class Git
 
         if (!$initialClone) {
             // 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)) {
                 $this->io->setAuthentication($match[3], urldecode($match[1]), urldecode($match[2]));
             }