浏览代码

Fix undefined var $auth issue

Jordi Boggiano 9 年之前
父节点
当前提交
f9fadb187e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Composer/Util/Git.php

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

@@ -89,6 +89,7 @@ class Git
 
         $command = call_user_func($commandCallable, $url);
 
+        $auth = null;
         if ($bypassSshForGitHub || 0 !== $this->process->execute($command, $ignoredOutput, $cwd)) {
             // private github repository without git access, try https with auth
             if (preg_match('{^git@'.self::getGitHubDomainsRegex($this->config).':(.+?)\.git$}i', $url, $match)) {