Commits

Junio C Hamano  committed 712d352 Merge

Merge branch 'tr/maint-cherry-pick-list' into maint

* tr/maint-cherry-pick-list:
cherry_pick_list: quit early if one side is empty

  • Participants
  • Parent commits 8cc3709, 36c0797

Comments (0)

Files changed (1)

 			right_count++;
 	}
 
+	if (!left_count || !right_count)
+		return;
+
 	left_first = left_count < right_count;
 	init_patch_ids(&ids);
 	if (revs->diffopt.nr_paths) {