shallow clone: unparse and reparse an unshallowed commit

Otherwise we would not read the real parents from the commit
object.
This commit is contained in:
Junio C Hamano 2006-11-13 22:47:46 -08:00
Родитель c6702f4b95
Коммит 176d45cb20
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -582,6 +582,7 @@ static void receive_needs(void)
object->flags &= ~CLIENT_SHALLOW;
/* make sure the real parents are parsed */
unregister_shallow(object->sha1);
object->parsed = 0;
parse_commit((struct commit *)object);
parents = ((struct commit *)object)->parents;
while (parents) {