Browse Source

Look for Auth failed anywhere in errorOutput

Mark Achee 12 years ago
parent
commit
6f689f8926
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Downloader/GitDownloader.php

+ 1 - 1
src/Composer/Downloader/GitDownloader.php

@@ -202,7 +202,7 @@ class GitDownloader extends VcsDownloader
             } 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]);