From: Linus Torvalds Date: Wed, 12 Dec 2007 16:02:35 GMT Subject: Re: git-cvsexportcommit fails for huge commits Message-ID: In-Reply-To: <20071212083154.GB7676@coredump.intra.peff.net> On Wed, 12 Dec 2007, Jeff King wrote: > > +sub xargs_safe_pipe_capture { > + my $MAX_ARG_LENGTH = 1024; Well, that's a bit extreme. Make it 16kB or something. Anything should be able to handle that. Btw, on Linux, the argument length is realy only limited by the stack size limits these days (you have to have a fairly recent kernel, though). It's limited to stack limit / 4, to be exact, iirc. So if you see these kinds of problems, and are running a recent kernel, do something like ulimit -s 65536 to give yourself a big stack and you can continue without these kinds of changes.. Linus