Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use system-installed git binary for push/pull/fetch (#25900)
Max Brunsfeldae6d3503348f
diff --git a/crates/git/src/repository.rs b/crates/git/src/repository.rsindex c2c5173fa11..b690887ca1f 100644--- a/crates/git/src/repository.rs+++ b/crates/git/src/repository.rs@@ -614,7 +614,7 @@ impl GitRepository for RealGitRepository {) -> Result<()> {let working_directory = self.working_directory()?;- let output = new_std_command(&self.git_binary_path)+ let output = new_std_command("git").current_dir(&working_directory).args(["push", "--quiet"]).args(options.map(|option| match option {@@ -638,7 +638,7 @@ impl GitRepository for RealGitRepository {fn pull(&self, branch_name: &str, remote_name: &str) -> Result<()> {let working_directory = self.working_directory()?;- let output = new_std_command(&self.git_binary_path)+ let output = new_std_command("git").current_dir(&working_directory).args(["pull", "--quiet"]).arg(remote_name)@@ -658,7 +658,7 @@ impl GitRepository for RealGitRepository {fn fetch(&self) -> Result<()> {let working_directory = self.working_directory()?;- let output = new_std_command(&self.git_binary_path)+ let output = new_std_command("git").current_dir(&working_directory).args(["fetch", "--quiet", "--all"]).output()?;