diff --git a/sequencer.c b/sequencer.c index eaffa8ebb8..1db844100a 100644 --- a/sequencer.c +++ b/sequencer.c @@ -2542,6 +2542,12 @@ fast_forward_edit: res = run_git_commit(NULL, reflog_action, opts, flags); *check_todo = 1; } + /* + * If "git commit" failed to run then res == -1, but we don't + * want reschedule the last command because the picking the + * commit was successful. + */ + res = !!res; }