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. --- upload-pack.c | 1 + 1 file changed, 1 insertion(+) (limited to 'upload-pack.c') diff --git a/upload-pack.c b/upload-pack.c index 7e3c437d8e..d5b47507db 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 v1.2.3