mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
fix string trim in normalizeGitHostSpec func
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
This commit is contained in:
@@ -200,7 +200,7 @@ func normalizeGitHostSpec(host string) string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if strings.HasPrefix(s, "git::") {
|
if strings.HasPrefix(s, "git::") {
|
||||||
host = strings.TrimLeft(s, "git::")
|
host = strings.TrimPrefix(s, "git::")
|
||||||
}
|
}
|
||||||
return host
|
return host
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user