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.

git: Capture all working tree changes for the Review Diff action (#49993)

Danilo Leal3495746654fc
diff --git a/crates/git/src/repository.rs b/crates/git/src/repository.rs
index 592c04427dc..ab445a1cd83 100644
--- a/crates/git/src/repository.rs
+++ b/crates/git/src/repository.rs
@@ -2015,7 +2015,7 @@ impl GitRepository for RealGitRepository {
DiffType::MergeBase { base_ref } => {
new_command(&git_binary_path)
.current_dir(&working_directory)
- .args(["diff", "--merge-base", base_ref.as_ref(), "HEAD"])
+ .args(["diff", "--merge-base", base_ref.as_ref()])
.output()
.await?
}