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]);