summaryrefslogtreecommitdiffstats
path: root/pkg/gui/undoing.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-12-07 21:59:36 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-01-04 09:07:15 +1100
commitb4c078d565af69bcb2f46adc20e528e53ae32908 (patch)
tree7a336c0169b7eab49765d39f7a0dd5537e919ba2 /pkg/gui/undoing.go
parent157dd309f75f2ce3c23be53ddd2e4baa49a67321 (diff)
WIP
Diffstat (limited to 'pkg/gui/undoing.go')
-rw-r--r--pkg/gui/undoing.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/gui/undoing.go b/pkg/gui/undoing.go
index bd67408d4..76a391730 100644
--- a/pkg/gui/undoing.go
+++ b/pkg/gui/undoing.go
@@ -2,7 +2,6 @@ package gui
import (
"github.com/jesseduffield/lazygit/pkg/commands"
- "github.com/jesseduffield/lazygit/pkg/commands/oscommands"
"github.com/jesseduffield/lazygit/pkg/utils"
)
@@ -169,7 +168,7 @@ func (gui *Gui) handleHardResetWithAutoStash(commitSha string, options handleHar
gitCommand := gui.GitCommand.WithSpan(options.span)
reset := func() error {
- if err := gui.resetToRef(commitSha, "hard", options.span, oscommands.RunCommandOptions{EnvVars: options.EnvVars}); err != nil {
+ if err := gui.resetToRef(commitSha, "hard", options.span, options.EnvVars); err != nil {
return gui.surfaceError(err)
}
return nil