shallow clone: unparse and reparse an unshallowed commit
authorJunio C Hamano <junkio@cox.net>
Tue, 14 Nov 2006 06:47:46 +0000 (22:47 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 24 Nov 2006 23:42:49 +0000 (15:42 -0800)
Otherwise we would not read the real parents from the commit
object.

upload-pack.c

index 7e3c437d8e1eaca61ccabb29f3097ba9c5c3732e..d5b47507db3e1db394c3ce054bbd84e45c4a9574 100644 (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) {