summaryrefslogtreecommitdiffstats
path: root/pkg/commands/os.go
diff options
context:
space:
mode:
authormjarkk <mkopenga@gmail.com>2018-11-10 08:57:02 +0100
committermjarkk <mkopenga@gmail.com>2018-11-10 08:57:02 +0100
commit834e42897d5c2190a7f108d9be5c910138c1199e (patch)
tree7b97e01bb243da689445d9e9ce19ac872066d62d /pkg/commands/os.go
parent500267417b9779822e908ba7997f9adb9c881cac (diff)
Switched back to github.com/mgutz/str instaid of a copy of ToArgv
Diffstat (limited to 'pkg/commands/os.go')
-rw-r--r--pkg/commands/os.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/commands/os.go b/pkg/commands/os.go
index 65e25271b..7f2ddde25 100644
--- a/pkg/commands/os.go
+++ b/pkg/commands/os.go
@@ -9,6 +9,7 @@ import (
"github.com/jesseduffield/lazygit/pkg/config"
"github.com/jesseduffield/lazygit/pkg/utils"
+ "github.com/mgutz/str"
"github.com/sirupsen/logrus"
gitconfig "github.com/tcnksm/go-gitconfig"
)
@@ -49,7 +50,7 @@ func NewOSCommand(log *logrus.Entry, config config.AppConfigurer) *OSCommand {
// RunCommandWithOutput wrapper around commands returning their output and error
func (c *OSCommand) RunCommandWithOutput(command string) (string, error) {
c.Log.WithField("command", command).Info("RunCommand")
- splitCmd := ToArgv(command)
+ splitCmd := str.ToArgv(command)
c.Log.Info(splitCmd)
return sanitisedCommandOutput(
c.command(splitCmd[0], splitCmd[1:]...).CombinedOutput(),