Skip to content

Commit

Permalink
rerere: do not skip two conflicted paths next to each other.
Browse files Browse the repository at this point in the history
The code forgot to take the for (;;) loop control into account,
incrementing the index once too many.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Feb 25, 2007
1 parent cef19c7 commit ab242f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-rerere.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ static int find_conflict(struct path_list *conflict)
ce_stage(e3) == 3 && ce_same_name(e1, e2) &&
ce_same_name(e1, e3)) {
path_list_insert((const char *)e1->name, conflict);
i += 3;
i += 2;
}
}
return 0;
Expand Down

0 comments on commit ab242f8

Please sign in to comment.