From 508829271843939c50cf59ba26a25692c5616bf0 Mon Sep 17 00:00:00 2001 From: Akash Shinde Date: Thu, 22 Aug 2019 20:01:34 +0530 Subject: [PATCH] put back repo file creation in init Signed-off-by: Akash Shinde --- cmd/helm/init.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/helm/init.go b/cmd/helm/init.go index fab9a7a1f..4c16d8cfa 100644 --- a/cmd/helm/init.go +++ b/cmd/helm/init.go @@ -145,10 +145,10 @@ func ensureReposFile(out io.Writer, skipRefresh bool) error { repoFile := helmpath.RepositoryFile() if fi, err := os.Stat(repoFile); err != nil { fmt.Fprintf(out, "Creating %s \n", repoFile) - //f := repo.NewFile() - //if err := f.WriteFile(repoFile, 0644); err != nil { - // return err - //} + f := repo.NewFile() + if err := f.WriteFile(repoFile, 0644); err != nil { + return err + } } else if fi.IsDir() { return errors.Errorf("%s must be a file, not a directory", repoFile) }