fix string trim in normalizeGitHostSpec func

Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
This commit is contained in:
Guangming Wang
2019-10-16 00:06:02 +08:00
parent 0c52bd71ba
commit 367d0e042c

View File

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