From 6f689f8926f6e59807cd7f73fb6c1a49f03eb821 Mon Sep 17 00:00:00 2001 From: Mark Achee Date: Mon, 1 Oct 2012 10:14:05 -0500 Subject: [PATCH] Look for Auth failed anywhere in errorOutput --- src/Composer/Downloader/GitDownloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Downloader/GitDownloader.php b/src/Composer/Downloader/GitDownloader.php index cd910c6f0..dc6e4b173 100644 --- a/src/Composer/Downloader/GitDownloader.php +++ b/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]);