mirror of
https://github.com/composer/composer
synced 2025-05-08 16:17:37 +00:00
Fix undefined var $auth issue
This commit is contained in:
parent
40baa3ff05
commit
f9fadb187e
1 changed files with 1 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue