Skip to content

Commit

Permalink
Fix "git clone http://$URL" to check out the worktree when asked
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
peff authored and gitster committed Jun 4, 2008
1 parent 60727b5 commit 541fc21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions walker.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 541fc21

Please sign in to comment.