diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-28 12:08:13 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-28 13:19:35 +1100 |
commit | a9559a5c8738d6938f8750f0729f077e0842800e (patch) | |
tree | 6bf8ae15c80891325227261d46880d5f2e553c0b /pkg/gui/patch_options_panel.go | |
parent | 814ee24c8d13ae554925530ec68f325394ddfe6d (diff) |
move working tree state function into git.go
Diffstat (limited to 'pkg/gui/patch_options_panel.go')
-rw-r--r-- | pkg/gui/patch_options_panel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/patch_options_panel.go b/pkg/gui/patch_options_panel.go index 2fa274f7c..b8e88d903 100644 --- a/pkg/gui/patch_options_panel.go +++ b/pkg/gui/patch_options_panel.go @@ -59,7 +59,7 @@ func (gui *Gui) getPatchCommitIndex() int { } func (gui *Gui) validateNormalWorkingTreeState() (bool, error) { - if gui.workingTreeState() != "normal" { + if gui.GitCommand.WorkingTreeState() != "normal" { return false, gui.createErrorPanel(gui.Tr.SLocalize("CantPatchWhileRebasingError")) } return true, nil |