Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Use system git for committing (#26705)

Cole Millerf3703fa8be2c
diff --git a/crates/git/src/repository.rs b/crates/git/src/repository.rs
index ad0798e6194..bec38222854 100644
--- a/crates/git/src/repository.rs
+++ b/crates/git/src/repository.rs
@@ -795,9 +795,8 @@ impl GitRepository for RealGitRepository {
cx: AsyncApp,
) -> BoxFuture<Result<()>> {
let working_directory = self.working_directory();
- let git_binary_path = self.git_binary_path.clone();
cx.background_spawn(async move {
- let mut cmd = new_smol_command(&git_binary_path);
+ let mut cmd = new_smol_command("git");
cmd.current_dir(&working_directory?)
.envs(env)
.args(["commit", "--quiet", "-m"])