Skip to content

Commit b058360

Browse files
committed
Merge pull request #140 from nalla/console-read-clarification
fixup! mingw: Support `git_terminal_prompt` with more terminals
2 parents d56d2f8 + 3587016 commit b058360

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compat/terminal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static int disable_echo(void)
9696

9797
static char *xterm_prompt(const char *prompt, int echo)
9898
{
99-
const char *read_password[] = {
99+
const char *read_input[] = {
100100
"sh", "-c",
101101
"cat >/dev/tty && read line </dev/tty && echo \"$line\"",
102102
NULL
@@ -111,7 +111,7 @@ static char *xterm_prompt(const char *prompt, int echo)
111111
if (!echo && run_command_v_opt(echo_off, 0))
112112
warning("Could not disable echo on xterm");
113113

114-
child.argv = read_password;
114+
child.argv = read_input;
115115
child.in = -1;
116116
child.out = -1;
117117

0 commit comments

Comments
 (0)