mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-08-19 12:16:34 +00:00
Add version to code init commit message
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user