diff options
Diffstat (limited to 'pkg/gui/patch_options_panel.go')
-rw-r--r-- | pkg/gui/patch_options_panel.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/gui/patch_options_panel.go b/pkg/gui/patch_options_panel.go index e51860b43..074b4f38e 100644 --- a/pkg/gui/patch_options_panel.go +++ b/pkg/gui/patch_options_panel.go @@ -62,6 +62,9 @@ func (gui *Gui) validateNormalWorkingTreeState() (bool, error) { if gui.GitCommand.WorkingTreeState() != "normal" { return false, gui.createErrorPanel(gui.Tr.SLocalize("CantPatchWhileRebasingError")) } + if gui.GitCommand.WorkingTreeState() != "normal" { + return false, gui.createErrorPanel(gui.Tr.SLocalize("CantPatchWhileRebasingError")) + } return true, nil } |