Re: Clone fails on a repo with too many heads/tags
- From
Jeff King <peff@peff.net>
- Date
- Mar 21, 2012, 17:14 UTC
- Message-ID
- <20120321171423.GA13140@sigill.intra.peff.net>
- In-Reply-To
- <CAJo=hJu0H5wfXB_y5XQ6=S0VJ9t4pxHWkuy_=rehJL_6psf00g@mail.gmail.com>
On Wed, Mar 21, 2012 at 07:28:24AM -0700, Shawn O. Pearce wrote:
Show 7 quoted lines
> > 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.
Something in me feels slightly uncomfortable with that, just because simple newline-delimited formats make it easy for people to hack on the tool and feed input from unexpected sources.
But stateless-rpc is already a pretty deep internal interface anyway, and the format is already weird (the second half is already packetized input from a remote anyway). So it's probably not worth caring about hackability here.
-Peff