]> git.ipfire.org Git - thirdparty/git.git/commitdiff
sequencer: remove duplicate rollback_lock_file() call
authorElijah Newren <newren@gmail.com>
Wed, 21 Oct 2020 13:24:35 +0000 (13:24 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Oct 2020 19:54:44 +0000 (12:54 -0700)
Commit 2b6ad0f4bc ("rebase --rebase-merges: add support for octopus
merges", 2017-12-21) introduced a case where rollback_lock_file() was
unconditionally called twice in a row with no intervening commands.
Remove the duplicate.

Signed-off-by: Elijah Newren <newren@gmail.com>
Reviewed-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c

index fd7701c88a8643c424d4f61fd0cc86fde3097d7d..935860a5c43e37a0e9ee99ceb9f5ea074ff8d5db 100644 (file)
@@ -3572,7 +3572,6 @@ static int do_merge(struct repository *r,
                unlink(git_path_cherry_pick_head(r));
                rollback_lock_file(&lock);
 
-               rollback_lock_file(&lock);
                ret = run_command(&cmd);
 
                /* force re-reading of the cache */