@matheusbsbs / matheus-bagliano / commits / 176d45cb20
Fork 0

shallow clone: unparse and reparse an unshallowed commit

Otherwise we would not read the real parents from the commit object.

Junio C Hamano committed Nov 13, 2006 at 22:47 UTC 176d45cb20eb4ffc661d73383aec01943e056e10
1 file changed +1
upload-pack.c
+1
@@ -582,6 +582,7 @@ static void receive_needs(void)
582 object->flags &= ~CLIENT_SHALLOW;
583 /* make sure the real parents are parsed */
584 unregister_shallow(object->sha1);
585 + object->parsed = 0;
586 parse_commit((struct commit *)object);
587 parents = ((struct commit *)object)->parents;
588 while (parents) {