Re: Clone fails on a repo with too many heads/tags
- From
Shawn Pearce <spearce@spearce.org>
- Date
- Mar 21, 2012, 14:28 UTC
- Message-ID
- <CAJo=hJu0H5wfXB_y5XQ6=S0VJ9t4pxHWkuy_=rehJL_6psf00g@mail.gmail.com>
- In-Reply-To
- <4F69B5F0.2060605@gmx.net>
On Wed, Mar 21, 2012 at 04:05, Ivan Todoroski <grnch_lists@gmx.net> wrote:
Show 10 quoted lines
> 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.