Move GIT_TERMINAL_PROMPT to env vars (#11789)

This commit is contained in:
Zanie Blue 2025-02-25 21:56:24 -06:00 committed by GitHub
parent bace1a58c9
commit b180fe99b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View file

@ -578,9 +578,10 @@ fn fetch_with_cli(
disable_ssl: bool,
) -> Result<()> {
let mut cmd = ProcessBuilder::new(GIT.as_ref()?);
// Fix for https://github.com/astral-sh/uv/issues/5107.
// Interactive prompts via GUI like SSH_ASKPASS still work
cmd.env("GIT_TERMINAL_PROMPT", "0");
// Disable interactive prompts in the terminal, as they'll be erased by the progress bar
// animation and the process will "hang". Interactive prompts via the GUI like `SSH_ASKPASS`
// are still usable.
cmd.env(EnvVars::GIT_TERMINAL_PROMPT, "0");
cmd.arg("fetch");
if tags {