From 176d45cb20eb4ffc661d73383aec01943e056e10 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 13 Nov 2006 22:47:46 -0800 Subject: [PATCH] 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(+) 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) { -- 2.26.2