diff --git a/clustertool/pkg/initfiles/initfiles.go b/clustertool/pkg/initfiles/initfiles.go index d8b0b10c7c9c5..6175ae02f1abe 100644 --- a/clustertool/pkg/initfiles/initfiles.go +++ b/clustertool/pkg/initfiles/initfiles.go @@ -126,7 +126,7 @@ func FormatGitURL(input string) string { input = strings.Replace(input, "ssh://", "ssh://git@", 1) } - if strings.Contains(url, "git@git@") { + if strings.Contains(input, "git@git@") { input = strings.Replace(input, "git@git@", "git@", 1) }