Sfoglia il codice sorgente

check for additional possible output strings, fixes #5543

Rob Bast 9 anni fa
parent
commit
02455712cf
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      src/Composer/Util/Git.php

+ 6 - 1
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;