You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 20e898e
Browse filesBrowse the repository at this point in the historyBrowse files
Fix background git fetch hanging silently when asking for an SSH passphrase
When using ssh-agent or ssh identities without caching, background git operations like `git fetch --tags` would silently hang forever when prompting for user input (such as an SSH passphrase).
This adds `-c core.sshCommand=ssh -o BatchMode=yes` to specific background tag fetching commands to force SSH to fail fast instead of hanging. Additionally, `GIT_TERMINAL_PROMPT=0` was added to all background git environments to suppress other generic terminal prompts.
Code was refactored based on review to introduce `Git.silentSshArgs` and target it only at specific `fetch --tags` network endpoints so that user customizations (such as alternate keyfiles or PuTTY) are not broken via an indiscriminate global override.
Fixesflutter#184309
Co-authored-by: bkonyi <[email protected]>
0 commit comments