diff options
author | 마누엘 <nalla@hamal.uberspace.de> | 2020-04-10 11:27:51 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-04-10 10:27:16 -0700 |
commit | 1f09aed8346f11c9fd236940b6e500388c394af2 (patch) | |
tree | b75743fa3e205b88c1ff155dfe6ef1af663e60b4 /t/t5512-ls-remote.sh | |
parent | interactive: refactor code asking the user for interactive input (diff) | |
download | tgif-1f09aed8346f11c9fd236940b6e500388c394af2.tar.xz |
interactive: explicitly `fflush` stdout before expecting input
At least one interactive command writes a prompt to `stdout` and then
reads user input on `stdin`: `git clean --interactive`. If the prompt is
left in the buffer, the user will not realize the program is waiting for
their input.
So let's just flush `stdout` before reading the user's input.
Signed-off-by: 마누엘 <nalla@hamal.uberspace.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5512-ls-remote.sh')
0 files changed, 0 insertions, 0 deletions