From: Jakub Narebski Date: Sun, 18 Mar 2012 22:07:42 GMT Subject: Re: Clone fails on a repo with too many heads/tags Message-ID: <201203182307.43599.jnareb@gmail.com> In-Reply-To: <20120318190659.GA24829@sigill.intra.peff.net> Jeff King wrote: [...] > I think the only sane solution is to write the values to a temporary > file, and do something like: > >   git fetch-pack --stateless-rpc --refs-from=$tmpfile > > Even if you put the tmpfile in $GIT_DIR, I don't think this should run > afoul of any read-only repositories, since by definition you are > fetching into the repository (but you could also just put it in /tmp). Or git fetch-pack --stateless-rpc --refs-fd=$n and there would be no need for temporary file. -- Jakub Narebski Poland