Skip to content

Commit 5eda906

Browse files
committed
rerere: handle conflicts with multiple stage #1 entries
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 <[email protected]>
1 parent fb70a06 commit 5eda906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rerere.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ static int check_one_conflict(int i, int *type)
369369
}
370370

371371
*type = PUNTED;
372-
if (ce_stage(e) == 1)
372+
while (ce_stage(active_cache[i]) == 1)
373373
i++;
374374

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

0 commit comments

Comments
 (0)