From 176d45cb20eb4ffc661d73383aec01943e056e10 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 13 Nov 2006 22:47:46 -0800 Subject: 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 7e3c437..d5b4750 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) { -- cgit v0.10.2-6-g49f6