summaryrefslogtreecommitdiff
path: root/cmd/ponzu/options.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/ponzu/options.go')
-rw-r--r--cmd/ponzu/options.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/cmd/ponzu/options.go b/cmd/ponzu/options.go
index 19b61bb..bc96b42 100644
--- a/cmd/ponzu/options.go
+++ b/cmd/ponzu/options.go
@@ -214,6 +214,25 @@ func createProjInDir(path string) error {
return err
}
+ if dev {
+ devClone := exec.Command("git", "clone", local, "--branch", "ponzu-dev", "--single-branch", path)
+ devClone.Stdout = os.Stdout
+ devClone.Stderr = os.Stderr
+
+ err := devClone.Start()
+ if err != nil {
+ return err
+ }
+
+ err = devClone.Wait()
+ if err != nil {
+ return err
+ }
+
+ fmt.Println("Dev build cloned from bosssauce/ponzu:ponzu-dev")
+ return nil
+ }
+
// try to git clone the repository from the local machine's $GOPATH
localClone := exec.Command("git", "clone", local, path)
localClone.Stdout = os.Stdout