From f9fadb187e7a61a75fcdbc0d2377f3fa307541db Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 19 Jan 2016 12:04:23 +0000 Subject: [PATCH] Fix undefined var $auth issue --- src/Composer/Util/Git.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/Util/Git.php b/src/Composer/Util/Git.php index aae6eb686..a6d87e1bb 100644 --- a/src/Composer/Util/Git.php +++ b/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)) {