Skip to content

Commit

Permalink
Set GIT_TERMINAL_PROMPT=0 when resolving dependencies
Browse files Browse the repository at this point in the history
The interactive terminal prompt is not compatible with our TUI spinner
animation, which will shadow the prompt and make it look like uv is
hanging forever.

Interactive auth is still supported via GUI mechanisms configured
through git, like SSH_ASKPASS.

This fixes astral-sh#5107
  • Loading branch information
piegamesde committed Feb 25, 2025
1 parent 48610a6 commit 1c9247d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/uv-git/src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +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");

cmd.arg("fetch");
if tags {
cmd.arg("--tags");
Expand Down

0 comments on commit 1c9247d

Please sign in to comment.