Merge pull request #5553 from alcohol/fix-basic-auth-gitutil
check for additional possible authentication failure strings in gitutilpull/5558/head
commit
8e2f5e741c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue