Remove old generated files from .gitignore.
[gitweb.git] / git-rebase--interactive.sh
index 47581ced5a862a8d21f09d096fe9b20507e27274..090c3e51437969459f2b4f4625d5785d79c05084 100755 (executable)
@@ -372,8 +372,10 @@ do
                        test ! -f "$DOTEST"/amend || git reset --soft HEAD^
                } &&
                export GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_AUTHOR_DATE &&
-               git commit --no-verify -F "$DOTEST"/message -e ||
+               if ! git commit --no-verify -F "$DOTEST"/message -e
+               then
                        die "Could not commit staged changes."
+               fi
 
                require_clean_work_tree
                do_rest