From 541fc218e6541ae94b3b1bc9e613f7bc879f6841 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Wed, 4 Jun 2008 14:38:58 -0400 Subject: Fix "git clone http://$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 31de6c1..0e68ee6 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; } -- cgit v0.10.2-6-g49f6