github_merge: copy the merge message for commit when conflict
authorJean Privat <jean@pryen.org>
Sat, 26 Apr 2014 01:11:04 +0000 (21:11 -0400)
committerJean Privat <jean@pryen.org>
Sat, 26 Apr 2014 01:11:04 +0000 (21:11 -0400)
so the following commit will be pre-rendered

Signed-off-by: Jean Privat <jean@pryen.org>

contrib/github_merge.nit

index f3c2da6..12cb829 100644 (file)
@@ -107,6 +107,7 @@ else
                return
        end
        if system("git merge --no-commit {sha}") != 0 then
+               system("cp mergemsg `git rev-parse --git-dir`/MERGE_MSG")
                print "Problem during merge... Let's do the commit manually."
                return
        end