Re: Clone fails on a repo with too many heads/tags
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Mar 18, 2012, 22:07 UTC
- Message-ID
- <201203182307.43599.jnareb@gmail.com>
- In-Reply-To
- <20120318190659.GA24829@sigill.intra.peff.net>
Jeff King wrote: [...]
Show 8 quoted lines
> 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