Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
git: Fix spurious file creation when staging (#53621)
Neele6196e2216bf
diff --git a/crates/git/src/repository.rs b/crates/git/src/repository.rsindex b1b9af106d9..faf973505af 100644--- a/crates/git/src/repository.rs+++ b/crates/git/src/repository.rs@@ -1462,7 +1462,7 @@ impl GitRepository for RealGitRepository {log::debug!("indexing SHA: {sha}, path {path:?}");let output = git- .build_command(&["update-index", "--add", "--cacheinfo", mode, sha, "--"])+ .build_command(&["update-index", "--add", "--cacheinfo", mode, sha]).envs(env.iter()).arg(path.as_unix_str()).output()