From: Shawn Pearce Date: Wed, 21 Mar 2012 14:28:24 GMT Subject: Re: Clone fails on a repo with too many heads/tags Message-ID: In-Reply-To: <4F69B5F0.2060605@gmx.net> On Wed, Mar 21, 2012 at 04:05, Ivan Todoroski wrote: > On 19.03.2012 03:44, Jeff King wrote: >> Yes, I think that would work. You'd just have to take care to pass the >> residual buffer (i.e., what is left in your input buffer after you >> notice that reading the list of wanted refs is finished) along to >> the git-protocol code.  So it would require a little refactoring of >> get_remote_heads, I think. > > > Would it be OK for fetch-pack.c to use the packetized format (pkt-line.h) > for reading the list of refs from stdin? This is probably the easiest way to implement the sneak-into-stdin patch. Use a pkt-line for each argument that should have been in the argv array from the command line, and a flush pkt to terminate the list.