Show git panel footer even when on a detached HEAD (#25968)

Previously, the git panel footer would accidentally hide when not on a
branch.

Release Notes:

- N/A

Co-authored-by: Ben Kunkle <ben.kunkle@gmail.com>
This commit is contained in:
Max Brunsfeld 2025-03-03 16:36:13 -08:00 committed by GitHub
parent fc5ff318e3
commit 922aaa0534
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2006,7 +2006,7 @@ impl GitPanel {
}; };
let editor_focus_handle = self.commit_editor.focus_handle(cx); let editor_focus_handle = self.commit_editor.focus_handle(cx);
let branch = active_repo.read(cx).current_branch()?.clone(); let branch = active_repo.read(cx).current_branch().cloned();
let footer_size = px(32.); let footer_size = px(32.);
let gap = px(8.0); let gap = px(8.0);
@ -2027,7 +2027,7 @@ impl GitPanel {
.child(PanelRepoFooter::new( .child(PanelRepoFooter::new(
"footer-button", "footer-button",
display_name, display_name,
Some(branch), branch,
Some(git_panel), Some(git_panel),
Some(branches), Some(branches),
)) ))