Skip to content

Commit

Permalink
Fix git executable name for Windows in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Nov 11, 2020
1 parent fc3f517 commit 97b176d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func SetPrepareCmd(fn func(*exec.Cmd) Runnable) func() {
PrepareCmd = func(cmd *exec.Cmd) Runnable {
// normalize git executable name for consistency in tests
if baseName := filepath.Base(cmd.Args[0]); baseName == "git" || baseName == "git.exe" {
cmd.Args[0] = baseName
cmd.Args[0] = "git"
}
return fn(cmd)
}
Expand Down

0 comments on commit 97b176d

Please sign in to comment.