From: Junio C Hamano Date: Tue, 14 Nov 2006 06:47:46 +0000 (-0800) Subject: shallow clone: unparse and reparse an unshallowed commit X-Git-Tag: v1.5.0-rc1~172^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=176d45cb20eb4ffc661d73383aec01943e056e10;p=git.git shallow clone: unparse and reparse an unshallowed commit Otherwise we would not read the real parents from the commit object. --- diff --git a/upload-pack.c b/upload-pack.c index 7e3c437d8..d5b47507d 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -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) {