git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC] http clone does not checkout working tree

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 4, 2008, 19:02 UTC
Message-ID
<7vwsl5vxa5.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080604183858.GA7095@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 18 quoted lines
> The following patch fixes it for me, but I really have no idea if there
> isn't something more subtle at work. Sending to Linus, since "git blame"
> points the surrounding code to you, and to Daniel, since the new clone
> and the commit walker are your areas.
>
> ---
> 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;
>  }
>  
The patch looks good to me.

And blaming Linus for this is slightly unfair, as the context the original "process_tree()" taken out of was that tree object was used once and then never used after this codepath is done with it, even though he _could_ have a perfect foresight to anticipate that someday somebody might want to call the routine from elsewhere without understanding the implications.

Previous: Daniel BarkalowNext: Jeff King
Message 6 of 7 in “[RFC] http clone does not checkout working tree”
  1. Jeff KingJun 4, 2008
  2. Linus TorvaldsJun 4, 2008
  3. Linus TorvaldsJun 4, 2008
  4. Daniel BarkalowJun 4, 2008
  5. Daniel BarkalowJun 4, 2008
  6. Junio C HamanoJun 4, 2008
  7. Jeff KingJun 4, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.