From fd00ea7ce856b44514884c3b91ab4ad0303eccb1 Mon Sep 17 00:00:00 2001
From: zefrog
Date: Tue, 15 May 2018 15:31:31 +0200
Subject: [PATCH] Fix Git detection of authentication failure when no tty is
attached to the process
---
src/Composer/Util/Git.php | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/Composer/Util/Git.php b/src/Composer/Util/Git.php
index e4d6bd803..a5fa87982 100644
--- a/src/Composer/Util/Git.php
+++ b/src/Composer/Util/Git.php
@@ -254,6 +254,7 @@ class Git
'remote error: Invalid username or password.',
'error: 401 Unauthorized',
'fatal: unable to access',
+ 'fatal: could not read Username',
);
foreach ($authFailures as $authFailure) {