Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
submodule: ignore trailing slash in relative url
[gitweb.git]
/
compat
/
terminal.c
diff --git
a/compat/terminal.c
b/compat/terminal.c
index 313897d581f0c5f2eae4d09b82d6ff8b98a21ea4..fa13ee672db33ef2fbcc16295230b99aa9d4f595 100644
(file)
--- a/
compat/terminal.c
+++ b/
compat/terminal.c
@@
-122,7
+122,7
@@
char *git_terminal_prompt(const char *prompt, int echo)
fputs(prompt, output_fh);
fflush(output_fh);
- r = strbuf_getline
(&buf, input_fh, '\n'
);
+ r = strbuf_getline
_lf(&buf, input_fh
);
if (!echo) {
putc('\n', output_fh);
fflush(output_fh);