Permalink
Browse files

Look for Auth failed anywhere in errorOutput

  • Loading branch information...
1 parent ac2fed2 commit 6f689f8926f6e59807cd7f73fb6c1a49f03eb821 @machee machee committed Oct 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Composer/Downloader/GitDownloader.php
@@ -202,7 +202,7 @@ protected function runCommand($commandCallable, $url, $path = null)
} elseif (
$this->io->isInteractive() &&
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])) {
$auth = $this->io->getAuthorization($match[2]);

0 comments on commit 6f689f8

Please sign in to comment.