From 99dafa8a436ee6e1d646ccf4464eecce0a6fd964 Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Mon, 7 Mar 2022 21:24:16 +0000 Subject: [PATCH 1/3] Ensure isSSH is set whenever DISABLE_HTTP_GIT is set In clone_buttons.tmpl the defer block sets the javascript isSSH variable. When DISABLE_HTTP_GIT is set we should always set this to true. Fix #10920 Signed-off-by: Andrew Thornton --- templates/repo/clone_buttons.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/clone_buttons.tmpl b/templates/repo/clone_buttons.tmpl index 29d3fe76d784b..d3771b559f6fd 100644 --- a/templates/repo/clone_buttons.tmpl +++ b/templates/repo/clone_buttons.tmpl @@ -20,7 +20,7 @@ {{end}} {{if not (and $.DisableHTTP $.DisableSSH)}} +{{else}} + +{{end}} {{if not (and $.DisableHTTP $.DisableSSH)}} -{{else}} - -{{end}} {{if not (and $.DisableHTTP $.DisableSSH)}} - + {{end}}