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
parent c6702f4b95
commit 176d45cb20

View File

@ -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) {