diff --git a/pkg/vcs/repo.go b/pkg/vcs/repo.go index 2bad77efb1..28d68ce820 100644 --- a/pkg/vcs/repo.go +++ b/pkg/vcs/repo.go @@ -145,7 +145,7 @@ func CloneGitRepo(link, dir string) (*git.Repository, error) { switch endpoint.Protocol { case "http", "https": - src = endpoint.Host + endpoint.Path + src = strings.TrimLeft(endpoint.String(), endpoint.Protocol+"://") default: src = link }