summaryrefslogtreecommitdiff
path: root/cmd/cms/options.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/cms/options.go')
-rw-r--r--cmd/cms/options.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/cms/options.go b/cmd/cms/options.go
index f95f800..94c809f 100644
--- a/cmd/cms/options.go
+++ b/cmd/cms/options.go
@@ -196,9 +196,9 @@ func createProjInDir(path string) error {
gopath = gopath[:len(gopath)-1]
gopath = filepath.Join(gopath, "src")
- repo := "github.com/nilslice/cms"
- local := filepath.Join(gopath, repo)
- network := "https://" + repo + ".git"
+ repo := []string{"github.com", "nilslice", "cms"}
+ local := filepath.Join(gopath, filepath.Join(repo...))
+ network := "https://" + strings.Join(repo, "/") + ".git"
// create the directory or overwrite it
err = os.MkdirAll(path, os.ModeDir|os.ModePerm)