From: Jeff King Date: Wed, 4 Jun 2008 18:38:58 +0000 (-0400) Subject: Fix "git clone http://$URL" to check out the worktree when asked X-Git-Tag: v1.5.6-rc2~12 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=541fc218e6541ae94b3b1bc9e613f7bc879f6841;p=git.git Fix "git clone $URL" to check out the worktree when asked The builtin-clone now does the http commit walking and the tree unpacking in the same process, and the commit walker leaves the in-core objects in a funny state. When forgetting the data read from the tree object, the object should be marked "not parsed yet" for later users. Acked-by: Linus Torvalds Signed-off-by: Junio C Hamano --- diff --git a/walker.c b/walker.c index 31de6c16b..0e68ee6d2 100644 --- a/walker.c +++ b/walker.c @@ -59,6 +59,7 @@ static int process_tree(struct walker *walker, struct tree *tree) free(tree->buffer); tree->buffer = NULL; tree->size = 0; + tree->object.parsed = 0; return 0; }