From: Jeff King Date: Tue, 16 Feb 2010 07:24:56 GMT Subject: Re: git fetch origin hanging in 1.7.0 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: > > 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