From 9bd7cfaa66c05c92b9ed42629888c2e10740fa13 Mon Sep 17 00:00:00 2001 From: spf13 Date: Sat, 31 Oct 2015 22:04:55 -0400 Subject: [PATCH] Fix bug where project name isn't properly detected --- cobra/cmd/helpers.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cobra/cmd/helpers.go b/cobra/cmd/helpers.go index 0cdbd646..28f70039 100644 --- a/cobra/cmd/helpers.go +++ b/cobra/cmd/helpers.go @@ -112,8 +112,7 @@ func getSrcPath() string { } func projectName() string { - pp := ProjectPath() - return filepath.Dir(pp) + return filepath.Base(ProjectPath()) } func guessProjectPath() {