From 046a9a4852149658c2eec1bc2172eae1a5b03d0e Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Sat, 27 Oct 2018 12:19:54 +0300 Subject: [PATCH] Add version to code init commit message --- cmd/podcli/code.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/podcli/code.go b/cmd/podcli/code.go index 7e893ad..8e47738 100644 --- a/cmd/podcli/code.go +++ b/cmd/podcli/code.go @@ -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