diff --git a/pkg/downloader/git_downloader.go b/pkg/downloader/git_downloader.go index a6b8694bb..28f7c42fe 100644 --- a/pkg/downloader/git_downloader.go +++ b/pkg/downloader/git_downloader.go @@ -50,7 +50,6 @@ func (g *GitDownloader) ensureGitDirIgnored(repoPath string) error { // DownloadTo will create a temp directory, then fetch a git repo into it. // The git repo will be archived into a chart and copied to the destPath. func (g *GitDownloader) DownloadTo(gitURL string, ref string, destPath string) error { - // the git archive command returns a tgz archive. we need to extract it to get the actual chart files. tmpDir, err := ioutil.TempDir("", "helm") if err != nil { return err diff --git a/pkg/downloader/manager.go b/pkg/downloader/manager.go index f2d4494aa..ffbcb4c11 100644 --- a/pkg/downloader/manager.go +++ b/pkg/downloader/manager.go @@ -491,6 +491,11 @@ Loop: continue } + // If repo is from git url, continue + if strings.HasPrefix(dd.Repository, "git:") { + continue + } + if dd.Repository == "" { continue } diff --git a/pkg/gitutil/gitutil_test.go b/pkg/gitutil/gitutil_test.go index cd61719c3..fdecaa27c 100644 --- a/pkg/gitutil/gitutil_test.go +++ b/pkg/gitutil/gitutil_test.go @@ -62,7 +62,7 @@ Please make sure you have the correct access rights and the repository exists.` } - fmt.Fprintf(os.Stdout, result) + fmt.Fprint(os.Stdout, result) os.Exit(exitCode) }