From 367d0e042c5a618fac0cf5b8f45b30fe49bc66d6 Mon Sep 17 00:00:00 2001 From: Guangming Wang Date: Wed, 16 Oct 2019 00:06:02 +0800 Subject: [PATCH] fix string trim in normalizeGitHostSpec func Signed-off-by: Guangming Wang --- pkg/git/repospec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }