From aceecec6bf5e841b52ffdd6224b433ed9ad82e2c Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Tue, 15 Apr 2025 22:15:07 -0600 Subject: [PATCH] Remove user agent from Git (#28798) Closes #28629 Azure seems to break if this is set. Release Notes: - git: Stop sending a custom HTTP header on remote operations --- crates/git/src/repository.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/crates/git/src/repository.rs b/crates/git/src/repository.rs index 28f0d1c910db767c3cdaecf3c0a457126e34a4aa..7a21866487786dc005dce9a1d9496a99a55d76c5 100644 --- a/crates/git/src/repository.rs +++ b/crates/git/src/repository.rs @@ -1013,7 +1013,6 @@ impl GitRepository for RealGitRepository { let mut command = new_smol_command("git"); command .envs(env.iter()) - .env("GIT_HTTP_USER_AGENT", "Zed") .current_dir(&working_directory) .args(["push"]) .args(options.map(|option| match option { @@ -1045,7 +1044,6 @@ impl GitRepository for RealGitRepository { let mut command = new_smol_command("git"); command .envs(env.iter()) - .env("GIT_HTTP_USER_AGENT", "Zed") .current_dir(&working_directory?) .args(["pull"]) .arg(remote_name) @@ -1070,7 +1068,6 @@ impl GitRepository for RealGitRepository { let mut command = new_smol_command("git"); command .envs(env.iter()) - .env("GIT_HTTP_USER_AGENT", "Zed") .current_dir(&working_directory?) .args(["fetch", "--all"]) .stdout(smol::process::Stdio::piped())