Skip to content

Commit

Permalink
rerere: handle conflicts with multiple stage #1 entries
Browse files Browse the repository at this point in the history
A conflicted index can have multiple stage #1 entries when dealing
with a criss-cross merge and using the "resolve" merge strategy.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
gitster committed Jul 24, 2015
1 parent fb70a06 commit 5eda906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rerere.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ static int check_one_conflict(int i, int *type)
}

*type = PUNTED;
if (ce_stage(e) == 1)
while (ce_stage(active_cache[i]) == 1)
i++;

/* Only handle regular files with both stages #2 and #3 */
Expand Down

0 comments on commit 5eda906

Please sign in to comment.