summaryrefslogtreecommitdiffstats
path: root/pkg/app
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-12-29 14:33:38 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-01-04 09:07:15 +1100
commit43a4fa970dfceb7868959ff4da48d5507fa2f234 (patch)
treedaff776e59aebeb9b814a7918a9db75d4443175f /pkg/app
parent192a548c9957807d9d5c9c4700dffe02c1f55f03 (diff)
WIP
Diffstat (limited to 'pkg/app')
-rw-r--r--pkg/app/app.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/app/app.go b/pkg/app/app.go
index 747f5205f..4fcbdc5b8 100644
--- a/pkg/app/app.go
+++ b/pkg/app/app.go
@@ -151,7 +151,7 @@ func NewApp(config config.AppConfigurer, filterPath string) (*App, error) {
}
func (app *App) validateGitVersion() error {
- output, err := app.OSCommand.RunWithOutput(app.OSCommand.NewCmdObj("git --version"))
+ output, err := app.OSCommand.Cmd.New("git --version").RunWithOutput()
// if we get an error anywhere here we'll show the same status
minVersionError := errors.New(app.Tr.MinGitVersionError)
if err != nil {
@@ -236,7 +236,7 @@ func (app *App) setupRepo() (bool, error) {
os.Exit(1)
}
- if err := app.OSCommand.Run(app.OSCommand.NewCmdObj("git init")); err != nil {
+ if err := app.OSCommand.Cmd.New("git init").Run(); err != nil {
return false, err
}
}