Add version to code init commit message

This commit is contained in:
Stefan Prodan
2018-10-27 12:19:54 +03:00
parent 4d78abdad8
commit 046a9a4852
+2 -1
View File
@@ -170,7 +170,8 @@ func runCodeInit(cmd *cobra.Command, args []string) error {
}
func gitPush() error {
cmd := exec.Command("sh", "-c", "git add . && git commit -m \"init\" && git push")
cmdPush := fmt.Sprintf("git add . && git commit -m \"sync %s\" && git push", codeVersion)
cmd := exec.Command("sh", "-c", cmdPush)
output, err := cmd.Output()
if err != nil {
return err