summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguillep2k <18600385+guillep2k@users.noreply.github.com>2019-08-16 19:28:55 -0300
committerzeripath <art27@cantab.net>2019-08-16 23:28:55 +0100
commitde5986ae032b8d647207fdd2e7adeefe243e1122 (patch)
tree1108d08730a03f9ba837e780161f3b41e45fee06
parentbee1227b2f64d33ecbb0c5972ffc1b7d9689f95f (diff)
downloadgitea-de5986ae032b8d647207fdd2e7adeefe243e1122.tar.gz
gitea-de5986ae032b8d647207fdd2e7adeefe243e1122.zip
Reduce quote usage to bypass bug in GIT_SSH_COMMAND (#7893)
-rw-r--r--integrations/git_helper_for_declarative_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/git_helper_for_declarative_test.go b/integrations/git_helper_for_declarative_test.go
index 9190d4bb4e..6397a5e570 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)