diff options
Diffstat (limited to 'pkg/gui/branches_panel.go')
-rw-r--r-- | pkg/gui/branches_panel.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go index 7b712b2ba..8dff14ac1 100644 --- a/pkg/gui/branches_panel.go +++ b/pkg/gui/branches_panel.go @@ -61,10 +61,12 @@ func (gui *Gui) refreshBranches() { } } - builder, err := commands.NewBranchListBuilder(gui.Log, gui.GitCommand, reflogCommits) - if err != nil { - _ = gui.surfaceError(err) - } + builder := commands.NewBranchListBuilder( + gui.Common, + gui.GitCommand.GetRawBranches, + gui.GitCommand.CurrentBranchName, + reflogCommits, + ) gui.State.Branches = builder.Build() if err := gui.postRefreshUpdate(gui.State.Contexts.Branches); err != nil { |