@matheusbsbs / matheus-bagliano / commits / 541fc218e6
Fork 0

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 <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Jun 4, 2008 at 14:38 UTC 541fc218e6541ae94b3b1bc9e613f7bc879f6841
1 file changed +1
walker.c
+1
@@ -59,6 +59,7 @@ static int process_tree(struct walker *walker, struct tree *tree)
59 free(tree->buffer);
60 tree->buffer = NULL;
61 tree->size = 0;
62 + tree->object.parsed = 0;
63 return 0;
64 }
65