git sync --pull
, git submit
hang indefinitely when asking for password
#433
Labels
bug
Something isn't working
Description of the bug
This happens when we're being prompted interactively for a password e.g. to authenticate with Github over HTTPS. Askpass-style programs do not read stdin/write stdout, so #429 doesn't help. Instead, they directly read/write to the terminal (so that the password is hidden).
Furthermore, if the askpass program fails, it seems that Git falls back to prompting on the terminal manually, so there's no way to cancel asking for the password. For example, even when
exit 1
ing:Expected behavior
Either the password is prompted or the operation fails immediately.
Actual behavior
Hangs forever.
Version of
rustc
No response
Automated bug report
No response
Version of
git-branchless
No response
Version of
git
No response
The text was updated successfully, but these errors were encountered: