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
This commit is contained in:
Yasuharu Ozaki 2014-09-11 21:16:23 +09:00
Родитель d044e078a3
Коммит c4b45abef5
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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