From 02455712cf1ff9f348ef402e311d4496faf3a528 Mon Sep 17 00:00:00 2001 From: Rob Bast Date: Tue, 26 Jul 2016 11:46:51 +0200 Subject: [PATCH] check for additional possible output strings, fixes #5543 --- src/Composer/Util/Git.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Composer/Util/Git.php b/src/Composer/Util/Git.php index 596188fe6..8edbbec37 100644 --- a/src/Composer/Util/Git.php +++ b/src/Composer/Util/Git.php @@ -234,7 +234,12 @@ class Git return false; } - $authFailures = array('fatal: Authentication failed', 'remote error: Invalid username or password.'); + $authFailures = array( + 'fatal: Authentication failed', + 'remote error: Invalid username or password.', + 'error: 401 Unauthorized' + ); + foreach ($authFailures as $authFailure) { if (strpos($this->process->getErrorOutput(), $authFailure) !== false) { return true;