summaryrefslogtreecommitdiffstats
path: root/pkg/gui/undoing.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-09-29 19:10:57 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-09-29 20:48:49 +1000
commit1759ddf2470389d8de7ccedad24caf66c3cdb7d5 (patch)
tree728215e1a6a2e60580ac905b1709f67a38f1814c /pkg/gui/undoing.go
parentf9643448a4ba186fb56d408a5ee8a21193986cd6 (diff)
move OS commands into their own package
Diffstat (limited to 'pkg/gui/undoing.go')
-rw-r--r--pkg/gui/undoing.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/undoing.go b/pkg/gui/undoing.go
index 2224c2b1f..d6f7c99e2 100644
--- a/pkg/gui/undoing.go
+++ b/pkg/gui/undoing.go
@@ -2,7 +2,7 @@ package gui
import (
"github.com/jesseduffield/gocui"
- "github.com/jesseduffield/lazygit/pkg/commands"
+ "github.com/jesseduffield/lazygit/pkg/commands/oscommands"
"github.com/jesseduffield/lazygit/pkg/utils"
)
@@ -156,7 +156,7 @@ type handleHardResetWithAutoStashOptions struct {
// only to be used in the undo flow for now
func (gui *Gui) handleHardResetWithAutoStash(commitSha string, options handleHardResetWithAutoStashOptions) error {
reset := func() error {
- if err := gui.resetToRef(commitSha, "hard", commands.RunCommandOptions{EnvVars: options.EnvVars}); err != nil {
+ if err := gui.resetToRef(commitSha, "hard", oscommands.RunCommandOptions{EnvVars: options.EnvVars}); err != nil {
return gui.surfaceError(err)
}
return nil