Skip to content

Commit

Permalink
fix(git): tests: quote ssh key path
Browse files Browse the repository at this point in the history
Windows doesn't like it otherwise
  • Loading branch information
aymanbagabas committed Nov 17, 2022
1 parent f7f0c95 commit 2eed2c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git/git_test.go
Expand Up @@ -152,7 +152,7 @@ func runGitHelper(t *testing.T, pk, cwd string, args ...string) error {

cmd := exec.Command("git", allArgs...)
cmd.Dir = cwd
cmd.Env = []string{fmt.Sprintf(`GIT_SSH_COMMAND=ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i %s -F /dev/null`, pk)}
cmd.Env = []string{fmt.Sprintf(`GIT_SSH_COMMAND=ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i "%s" -F /dev/null`, pk)}
out, err := cmd.CombinedOutput()
if err != nil {
t.Log("git out:", string(out))
Expand Down

0 comments on commit 2eed2c1

Please sign in to comment.