From ba83b0ee121401165f83499f575f3040e7c82652 Mon Sep 17 00:00:00 2001 From: Guillermo Prandi Date: Fri, 16 Aug 2019 16:25:12 -0300 Subject: [PATCH] Reduce quote usage to bypass bug in GIT_SSH_COMMAND --- integrations/git_helper_for_declarative_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/git_helper_for_declarative_test.go b/integrations/git_helper_for_declarative_test.go index 9190d4bb4e531..6397a5e570805 100644 --- a/integrations/git_helper_for_declarative_test.go +++ b/integrations/git_helper_for_declarative_test.go @@ -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)