fix: no need wrap git commit message in ""

main
sudo pacman -Syu 2022-07-22 22:52:53 +07:00
parent 30d6f15f87
commit d86a245dcb
No known key found for this signature in database
GPG Key ID: D6CB5C6C567C47B0
1 changed files with 1 additions and 1 deletions

View File

@ -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)