diff --git a/pkg/gui/tags_panel.go b/pkg/gui/tags_panel.go index 0cd6d2859..61cded63d 100644 --- a/pkg/gui/tags_panel.go +++ b/pkg/gui/tags_panel.go @@ -106,7 +106,13 @@ func (gui *Gui) handleDeleteTag(g *gocui.Gui, v *gocui.View) error { if err := gui.GitCommand.DeleteTag(tag.Name); err != nil { return gui.createErrorPanel(gui.g, err.Error()) } - return gui.refreshTags() + if err := gui.refreshCommits(g); err != nil { + return gui.createErrorPanel(g, err.Error()) + } + if err := gui.refreshTags(); err != nil { + return gui.createErrorPanel(g, err.Error()) + } + return nil }, nil) } @@ -137,7 +143,13 @@ func (gui *Gui) handleCreateTag(g *gocui.Gui, v *gocui.View) error { if err := gui.GitCommand.CreateLightweightTag(v.Buffer(), ""); err != nil { return gui.createErrorPanel(gui.g, err.Error()) } - return gui.refreshTags() + if err := gui.refreshCommits(g); err != nil { + return gui.createErrorPanel(g, err.Error()) + } + if err := gui.refreshTags(); err != nil { + return gui.createErrorPanel(g, err.Error()) + } + return nil }) }