1
0
Fork 0

Merge pull request #5553 from alcohol/fix-basic-auth-gitutil

check for additional possible authentication failure strings in gitutil
pull/5558/head
Jordi Boggiano 2016-07-28 09:58:08 +02:00 committed by GitHub
commit 8e2f5e741c
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;