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
This commit is contained in:
parent
f3f2c6d811
commit
aceecec6bf
1 changed files with 0 additions and 3 deletions
|
@ -1013,7 +1013,6 @@ impl GitRepository for RealGitRepository {
|
||||||
let mut command = new_smol_command("git");
|
let mut command = new_smol_command("git");
|
||||||
command
|
command
|
||||||
.envs(env.iter())
|
.envs(env.iter())
|
||||||
.env("GIT_HTTP_USER_AGENT", "Zed")
|
|
||||||
.current_dir(&working_directory)
|
.current_dir(&working_directory)
|
||||||
.args(["push"])
|
.args(["push"])
|
||||||
.args(options.map(|option| match option {
|
.args(options.map(|option| match option {
|
||||||
|
@ -1045,7 +1044,6 @@ impl GitRepository for RealGitRepository {
|
||||||
let mut command = new_smol_command("git");
|
let mut command = new_smol_command("git");
|
||||||
command
|
command
|
||||||
.envs(env.iter())
|
.envs(env.iter())
|
||||||
.env("GIT_HTTP_USER_AGENT", "Zed")
|
|
||||||
.current_dir(&working_directory?)
|
.current_dir(&working_directory?)
|
||||||
.args(["pull"])
|
.args(["pull"])
|
||||||
.arg(remote_name)
|
.arg(remote_name)
|
||||||
|
@ -1070,7 +1068,6 @@ impl GitRepository for RealGitRepository {
|
||||||
let mut command = new_smol_command("git");
|
let mut command = new_smol_command("git");
|
||||||
command
|
command
|
||||||
.envs(env.iter())
|
.envs(env.iter())
|
||||||
.env("GIT_HTTP_USER_AGENT", "Zed")
|
|
||||||
.current_dir(&working_directory?)
|
.current_dir(&working_directory?)
|
||||||
.args(["fetch", "--all"])
|
.args(["fetch", "--all"])
|
||||||
.stdout(smol::process::Stdio::piped())
|
.stdout(smol::process::Stdio::piped())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue