Don't add parents to the commit list if we have already

seen them.

Otherwise any merges will make the parent list explode.
This commit is contained in:
Linus Torvalds 2005-04-23 19:21:28 -07:00
Родитель 64745109c4
Коммит 4056c09114
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -124,8 +124,11 @@ struct commit *pop_most_recent_commit(struct commit_list **list)
free(old);
while (parents) {
parse_commit(parents->item);
insert_by_date(list, parents->item);
struct commit *commit = parents->item;
if (!commit->object.parsed) {
parse_commit(commit);
insert_by_date(list, commit);
}
parents = parents->next;
}
return ret;