From a49a4c53f8328efb7b523496c80a41465d93c84e Mon Sep 17 00:00:00 2001 From: Yasuharu Ozaki Date: Wed, 25 Jun 2014 18:19:32 +0900 Subject: [PATCH] Fix merge PR title to be followed with proper new line Now, merge pull-request makes a commit like: Merge pull request #8 from yasuoza/blahblah\n\nOriginal Pull Request Title This commit fixes it to: Merge pull request #8 from yasuoza/blahblah Original Pull Request Title --- commands/merge.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/merge.go b/commands/merge.go index cbe7fd3..5a5e507 100644 --- a/commands/merge.go +++ b/commands/merge.go @@ -72,7 +72,7 @@ func transformMergeArgs(args *Args) error { idx := args.IndexOfParam(mergeURL) args.RemoveParam(idx) - mergeMsg := fmt.Sprintf(`"Merge pull request #%v from %s\n\n%s"`, id, mergeHead, pullRequest.Title) + mergeMsg := fmt.Sprintf("Merge pull request #%v from %s\n\n%s", id, mergeHead, pullRequest.Title) args.AppendParams(mergeHead, "-m", mergeMsg) if args.IndexOfParam("--ff-only") == -1 {