From 7492ad7fe9e41511c22c75887cce6b7777e3e078 Mon Sep 17 00:00:00 2001
From: Adam Reese <adam@reese.io>
Date: Tue, 23 Feb 2016 09:55:06 -0800
Subject: [PATCH] fix(create): do not use full path for chart name

---
 cmd/helm/create.go | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/cmd/helm/create.go b/cmd/helm/create.go
index 3cbaa11fc..61bbd1d43 100644
--- a/cmd/helm/create.go
+++ b/cmd/helm/create.go
@@ -2,6 +2,7 @@ package main
 
 import (
 	"errors"
+	"path/filepath"
 
 	"github.com/codegangsta/cli"
 	"github.com/kubernetes/deployment-manager/chart"
@@ -25,12 +26,14 @@ func create(c *cli.Context) error {
 		return errors.New("'helm create' requires a chart name as an argument")
 	}
 
+	dir, name := filepath.Split(args[0])
+
 	cf := &chart.Chartfile{
-		Name:        args[0],
+		Name:        name,
 		Description: "Created by Helm",
 		Version:     "0.1.0",
 	}
 
-	_, err := chart.Create(cf, ".")
+	_, err := chart.Create(cf, dir)
 	return err
 }
-- 
GitLab