rebase -i: fix misleading error message after 'exec no-such' instruction
[gitweb.git] / git-rebase--interactive.sh
index a09e8423ddb1d05c581ef72101c3f5201ce2eeb9..56707d7a279274d4086b3eb3f1d1810f66fa8aed 100644 (file)
@@ -544,6 +544,10 @@ do_next () {
                        warn
                        warn "  git rebase --continue"
                        warn
+                       if test $status -eq 127         # command not found
+                       then
+                               status=1
+                       fi
                        exit "$status"
                elif test "$dirty" = t
                then