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_panel: Fix amend check (#29059)

Smit Barmasec585dbd8ff32
diff --git a/crates/git_ui/src/commit_modal.rs b/crates/git_ui/src/commit_modal.rs
index d5b6dcfcf56..3d4987b083a 100644
--- a/crates/git_ui/src/commit_modal.rs
+++ b/crates/git_ui/src/commit_modal.rs
@@ -545,7 +545,7 @@ impl CommitModal {
.active_repository
.as_ref()
.and_then(|repo| repo.read(cx).head_commit.as_ref())
- .is_some()
+ .is_none()
{
return;
}