1
0
Fork 0

Look for Auth failed anywhere in errorOutput

pull/1162/head
Mark Achee 2012-10-01 10:14:05 -05:00
parent ac2fed29a4
commit 6f689f8926
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ class GitDownloader extends VcsDownloader
} elseif ( } elseif (
$this->io->isInteractive() && $this->io->isInteractive() &&
preg_match('{(https?://)([^/]+/)(.*)$}i', $url, $match) && preg_match('{(https?://)([^/]+/)(.*)$}i', $url, $match) &&
strpos($this->process->getErrorOutput(), 'fatal: Authentication failed') === 0 strpos($this->process->getErrorOutput(), 'fatal: Authentication failed') !== false
) { ) {
if ($saved = $this->io->hasAuthorization($match[2])) { if ($saved = $this->io->hasAuthorization($match[2])) {
$auth = $this->io->getAuthorization($match[2]); $auth = $this->io->getAuthorization($match[2]);