From 94be867a54b4872920a5005671205e7a4263e17f Mon Sep 17 00:00:00 2001 From: Florian Assmus Date: Fri, 11 Jan 2019 13:41:29 +0100 Subject: [PATCH] Remove git:: prefix for all urls not only GitLab --- pkg/loader/gitcloner.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/loader/gitcloner.go b/pkg/loader/gitcloner.go index 01d21d4cd..7701f68a7 100644 --- a/pkg/loader/gitcloner.go +++ b/pkg/loader/gitcloner.go @@ -187,10 +187,8 @@ func normalizeGitHostSpec(host string) string { host = "https://github.com/" } } - if strings.Contains(s, "gitlab") { - if strings.HasPrefix(s, "git::") { - host = strings.TrimLeft(s, "git::") - } + if strings.HasPrefix(s, "git::") { + host = strings.TrimLeft(s, "git::") } return host }