diff options
Diffstat (limited to 'pkg/gui/reset_menu_panel.go')
-rw-r--r-- | pkg/gui/reset_menu_panel.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pkg/gui/reset_menu_panel.go b/pkg/gui/reset_menu_panel.go index fc15d36de..609655571 100644 --- a/pkg/gui/reset_menu_panel.go +++ b/pkg/gui/reset_menu_panel.go @@ -3,12 +3,11 @@ package gui import ( "fmt" - "github.com/jesseduffield/lazygit/pkg/commands/oscommands" "github.com/jesseduffield/lazygit/pkg/gui/style" ) -func (gui *Gui) resetToRef(ref string, strength string, span string, options oscommands.RunCommandOptions) error { - if err := gui.GitCommand.WithSpan(span).ResetToCommit(ref, strength, options); err != nil { +func (gui *Gui) resetToRef(ref string, strength string, span string, envVars []string) error { + if err := gui.GitCommand.WithSpan(span).ResetToCommit(ref, strength, envVars); err != nil { return gui.surfaceError(err) } @@ -39,7 +38,7 @@ func (gui *Gui) createResetMenu(ref string) error { style.FgRed.Sprintf("reset --%s %s", strength, ref), }, onPress: func() error { - return gui.resetToRef(ref, strength, "Reset", oscommands.RunCommandOptions{}) + return gui.resetToRef(ref, strength, "Reset", []string{}) }, } } |