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

Re: git fetch origin hanging in 1.7.0

From
Jeff King <peff@peff.net>
Date
Feb 16, 2010, 07:24 UTC
Message-ID
<20100216072456.GG2169@coredump.intra.peff.net>
In-Reply-To
<20100216151821.994ace31.rctay89@gmail.com>
On Tue, Feb 16, 2010 at 03:18:21PM +0800, Tay Ray Chuan wrote:
Show 8 quoted lines
> > That fixes the problem for me, but I am totally clueless about this
> > code. Do all transports have a git_transport_data (if so, then why is it
> > a void pointer?).
> 
> It is void so that it can be any struct - for example,
> git_transport_data, bundle_transport_data. That way, transport->data
> can point to any transport-specific data, while keeping the compiler
> satisfied at compile-time.

OK, I figured it was something like that. In that case, your fix looks like the right thing to do (and it fixes my test case).

Thanks.
> -- >8 --
> Subject: [PATCH] transport: add got_remote_refs flag
Acked-by: Jeff King <peff@peff.net>
-Peff
Previous: Tay Ray ChuanNext: Tay Ray Chuan
Message 4 of 7 in “git fetch origin hanging in 1.7.0”
  1. Kevin MenardFeb 16, 2010
  2. Jeff KingFeb 16, 2010
  3. Tay Ray ChuanFeb 16, 2010
  4. Jeff KingFeb 16, 2010
  5. Tay Ray ChuanFeb 16, 2010
  6. Kevin MenardFeb 16, 2010
  7. Ilari LiusvaaraFeb 16, 2010

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.