Actually run git commands if no GIT_ASKPASS is set (#27729)

Follow up to #27681

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2025-03-29 09:19:19 -06:00 committed by GitHub
parent 4970fe2d56
commit 73f77a7fbb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1366,7 +1366,6 @@ async fn run_git_command(
}
} else {
let ask_pass = AskPassSession::new(executor, ask_pass).await?;
let mut command = new_smol_command("git");
command
.env("GIT_ASKPASS", ask_pass.script_path())
.env("SSH_ASKPASS", ask_pass.script_path())