From c4b45abef54159b68710ac7579020d1dfe359858 Mon Sep 17 00:00:00 2001 From: Yasuharu Ozaki Date: Thu, 11 Sep 2014 21:16:23 +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 f1968fc3..7b6559c8 100644 --- a/commands/merge.go +++ b/commands/merge.go @@ -73,7 +73,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 {