fix repo add

Signed-off-by: Christopher A. Stelma <stelminator@gmail.com>
pull/5422/head
Christopher A. Stelma 7 years ago
parent 7c49b7ba69
commit 03404cb01d

@ -19,6 +19,7 @@ package main
import (
"fmt"
"io"
"path/filepath"
"github.com/spf13/cobra"
@ -110,7 +111,10 @@ func addRepository(name, url, username, password string, home helmpath.Home, cer
return fmt.Errorf("repository name (%s) already exists, please specify a different name", name)
}
cif := home.CacheIndex(name)
cif, err := filepath.Rel(home.Cache(), home.CacheIndex(name))
if err != nil {
return err
}
c := repo.Entry{
Name: name,
Cache: cif,

Loading…
Cancel
Save