From d86a245dcb4ab1f8af90abc21ddc9e579695bf07 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Fri, 22 Jul 2022 22:52:53 +0700 Subject: [PATCH] fix: no need wrap git commit message in "" --- internal/cli/action_run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cli/action_run.go b/internal/cli/action_run.go index 6188f46..ed0a937 100644 --- a/internal/cli/action_run.go +++ b/internal/cli/action_run.go @@ -265,7 +265,7 @@ func (a *action) runGitCommit(c *cli.Context, successUpgradedModules []Module, e for _, module := range successUpgradedModules { gitCommitMessage += fmt.Sprintf("\n%s: %s -> %s", module.Path, module.Version, module.Update.Version) } - gitCommitArgs := []string{"commit", "-m", `"` + gitCommitMessage + `"`} + gitCommitArgs := []string{"commit", "-m", gitCommitMessage} gitOutput, err = exec.CommandContext(c.Context, "git", gitCommitArgs...).CombinedOutput() if err != nil { return fmt.Errorf("failed to run git %+v: %w", strings.Join(gitCommitArgs, " "), err)