]> git.ozlabs.org Git - next-scripts/commitdiff
do_merge: Pause when the commit fails
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 11 Jun 2015 22:15:46 +0000 (08:15 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 19 Jun 2015 05:53:13 +0000 (15:53 +1000)
do_merge

index 47e02d8b8af1fda51be79430468a210a21884428..f463e6069aba44e6491144f86790e4b8c60a6072 100755 (executable)
--- a/do_merge
+++ b/do_merge
@@ -136,7 +136,9 @@ for h in $heads; do
                                bash -i || exit
                        }
 #                      [ "$(git status --porcelain)" ] && {
-                               GIT_EDITOR=: execute git commit -v -a
+                               GIT_EDITOR=: execute git commit -v -a || {
+                                       bash -i || exit
+                               }
                                execute git diff -M --stat --summary 'HEAD^..'
 #                      }
                }