Skip to content

Commit

Permalink
Look for Auth failed anywhere in errorOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSort committed Oct 1, 2012
1 parent ac2fed2 commit 6f689f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer/Downloader/GitDownloader.php
Expand Up @@ -202,7 +202,7 @@ protected function runCommand($commandCallable, $url, $path = null)
} 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]);
Expand Down

0 comments on commit 6f689f8

Please sign in to comment.