summaryrefslogtreecommitdiff
path: root/t/t1401-symbolic-ref.sh
diff options
context:
space:
mode:
authorLibravatar Ben Keene <seraphire@gmail.com>2020-02-11 18:57:58 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-02-11 12:04:05 -0800
commit6b602a2f97bbf27c8858643efeabce23195414cb (patch)
treef766946e9dbc9f1f68b35a51a525fc0b53c55be1 /t/t1401-symbolic-ref.sh
parentGit 2.25 (diff)
downloadtgif-6b602a2f97bbf27c8858643efeabce23195414cb.tar.xz
git-p4: rewrite prompt to be Windows compatible
The existing function prompt(prompt_text) does not work correctly when run on Windows 10 bash terminal when launched from the sourcetree GUI application. The stdout is not flushed properly so the prompt text is not displayed to the user until the next flush of stdout, which is quite confusing. Change this method by: * Adding flush to stderr, stdout, and stdin * Use readline from sys.stdin instead of raw_input. The existing strip().lower() are retained. Signed-off-by: Ben Keene <seraphire@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1401-symbolic-ref.sh')
0 files changed, 0 insertions, 0 deletions