Skip to content

Commit 7b576f9

Browse files
committed
Merge branch 'tr/maint-cherry-pick-list' into maint-1.6.6
* tr/maint-cherry-pick-list: cherry_pick_list: quit early if one side is empty
2 parents 7f43e75 + 36c0797 commit 7b576f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

revision.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,9 @@ static void cherry_pick_list(struct commit_list *list, struct rev_info *revs)
536536
right_count++;
537537
}
538538

539+
if (!left_count || !right_count)
540+
return;
541+
539542
left_first = left_count < right_count;
540543
init_patch_ids(&ids);
541544
if (revs->diffopt.nr_paths) {

0 commit comments

Comments
 (0)