Browse Source

Reduce quote usage to bypass bug in GIT_SSH_COMMAND (#7893)

tags/v1.21.12.1
guillep2k zeripath 6 years ago
parent
commit
de5986ae03
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      integrations/git_helper_for_declarative_test.go

+ 1
- 1
integrations/git_helper_for_declarative_test.go View File

@@ -38,7 +38,7 @@ func withKeyFile(t *testing.T, keyname string, callback func(string)) {

//Setup ssh wrapper
os.Setenv("GIT_SSH_COMMAND",
"ssh -o \"UserKnownHostsFile=/dev/null\" -o \"StrictHostKeyChecking=no\" -o \"IdentitiesOnly=yes\" -i \""+keyFile+"\"")
"ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -i \""+keyFile+"\"")
os.Setenv("GIT_SSH_VARIANT", "ssh")

callback(keyFile)


Loading…
Cancel
Save