summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--prompt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/prompt.c b/prompt.c
index 098dcfb7cf..5ded21a017 100644
--- a/prompt.c
+++ b/prompt.c
@@ -77,8 +77,10 @@ char *git_prompt(const char *prompt, int flags)
int git_read_line_interactively(struct strbuf *line)
{
- int ret = strbuf_getline_lf(line, stdin);
+ int ret;
+ fflush(stdout);
+ ret = strbuf_getline_lf(line, stdin);
if (ret != EOF)
strbuf_trim_trailing_newline(line);