Skip to content

Commit d043ba0

Browse files
dschoGit for Windows Build Agent
authored andcommitted
Merge branch 'fix-terminal-prompt'
This fixes the issue identified in #1498 where Git would not fall back to reading credentials from a Win32 Console when the credentials could not be read from the terminal via the Bash hack (that is necessary to support running in a MinTTY). Tested in a Powershell window. Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 0a9701f + b9206a7 commit d043ba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/terminal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ char *git_terminal_prompt(const char *prompt, int echo)
161161

162162
/* try shell_prompt first, fall back to CONIN/OUT if bash is missing */
163163
char *result = shell_prompt(prompt, echo);
164-
if (result || errno != ENOENT)
164+
if (result)
165165
return result;
166166

167167
#endif

0 commit comments

Comments
 (0)