From e6196e2216bf72e4235955e889464330c380530d Mon Sep 17 00:00:00 2001 From: Neel Date: Fri, 10 Apr 2026 14:16:43 +0100 Subject: [PATCH] git: Fix spurious file creation when staging (#53621) Related to https://github.com/zed-industries/zed/pull/53484. This PR fixes a `--` file being created when staging a hunk. Release Notes: - N/A --- crates/git/src/repository.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/git/src/repository.rs b/crates/git/src/repository.rs index b1b9af106d93e02ee61fdc436dce7d95f9a7c107..faf973505af6cde1b2e736a0bfb630fa18c3647c 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()