X Tutup
Skip to content

Commit 97b176d

Browse files
committed
Fix git executable name for Windows in tests
1 parent fc3f517 commit 97b176d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/run/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func SetPrepareCmd(fn func(*exec.Cmd) Runnable) func() {
2727
PrepareCmd = func(cmd *exec.Cmd) Runnable {
2828
// normalize git executable name for consistency in tests
2929
if baseName := filepath.Base(cmd.Args[0]); baseName == "git" || baseName == "git.exe" {
30-
cmd.Args[0] = baseName
30+
cmd.Args[0] = "git"
3131
}
3232
return fn(cmd)
3333
}

0 commit comments

Comments
 (0)
X Tutup