diff --git a/pkg/git/repospec.go b/pkg/git/repospec.go index 69a26e325..fac4ebaa5 100644 --- a/pkg/git/repospec.go +++ b/pkg/git/repospec.go @@ -200,7 +200,7 @@ func normalizeGitHostSpec(host string) string { } } if strings.HasPrefix(s, "git::") { - host = strings.TrimLeft(s, "git::") + host = strings.TrimPrefix(s, "git::") } return host }