Remove git:: prefix for all urls not only GitLab

This commit is contained in:
Florian Assmus
2019-01-11 13:41:29 +01:00
parent a5c6938c65
commit 94be867a54

View File

@@ -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
}