瀏覽代碼

Fix Git detection of authentication failure when no tty is attached to the process

zefrog 7 年之前
父節點
當前提交
fd00ea7ce8
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Composer/Util/Git.php

+ 1 - 0
src/Composer/Util/Git.php

@@ -254,6 +254,7 @@ class Git
             'remote error: Invalid username or password.',
             'remote error: Invalid username or password.',
             'error: 401 Unauthorized',
             'error: 401 Unauthorized',
             'fatal: unable to access',
             'fatal: unable to access',
+            'fatal: could not read Username',
         );
         );
 
 
         foreach ($authFailures as $authFailure) {
         foreach ($authFailures as $authFailure) {