1
0
Fork 0

check for additional possible output strings, fixes #5543

pull/5553/head
Rob Bast 2016-07-26 11:46:51 +02:00
parent 3d920f8dbb
commit 02455712cf
1 changed files with 6 additions and 1 deletions

View File

@ -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;