]> git.99rst.org Git - git.git/commit
sequencer: never reschedule on failed commit
authorPhillip Wood <redacted>
Wed, 15 Jul 2026 15:21:57 +0000 (16:21 +0100)
committerJunio C Hamano <redacted>
Wed, 15 Jul 2026 19:16:21 +0000 (12:16 -0700)
commit18f5750beb14c13f1a140361b6a0459764ec0364
tree42ef1edacd61709b3665c41ad38f603855ebd6e3
parent1da85922fddd6f693739385fa08c0d15ad066247
sequencer: never reschedule on failed commit

If "git commit" fails to run then run_git_commit() returns -1 which
causes the current command to be rescheduled. This is incorrect as
we have successfully picked the commit and have written all the state
files we need to successfully commit when the user continues. Fix this
by converting -1 to 1 which matches what do_merge() does.

Signed-off-by: Phillip Wood <redacted>
Signed-off-by: Junio C Hamano <redacted>
sequencer.c
git clone https://git.99rst.org/PROJECT