diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs index 6889b880623da021bcac64b8cd96d70db817dd5b..cd56473dceb48d3c7da3629818f06d79d656ee03 100644 --- a/crates/git_ui/src/git_panel.rs +++ b/crates/git_ui/src/git_panel.rs @@ -373,6 +373,7 @@ impl GitPanel { let is_sort_by_path = GitPanelSettings::get_global(cx).sort_by_path; if is_sort_by_path != was_sort_by_path { this.entries.clear(); + this.bulk_staging.take(); this.update_visible_entries(window, cx); } was_sort_by_path = is_sort_by_path