From: Avery Pennarun Date: Fri, 15 May 2009 18:24:19 GMT Subject: Re: Funny error with git gc... Message-ID: <32541b130905151124l40194e3eq78411c5b94bd9598@mail.gmail.com> In-Reply-To: <7vmy9etey8.fsf@alter.siamese.dyndns.org> On Fri, May 15, 2009 at 2:10 PM, Junio C Hamano wrote: > Johannes Schindelin writes: >> if you need a chuckle, like me, you might appreciate this story: in one of >> my repositories, "git gc" dies with >> >>       unable to open object pack directory: ...: Too many open files >> >> turns out that there are a whopping 1088 packs in that repository... > > Isn't it a more serious problem than a mere chuckle?  How would one > recover from such a situation (other than "mv .git/objects/pack-*; > for p in pack-*.pack; do git unpack-objects <$p; done")? I guess if you have root access, you could increase your file ulimit (-n) temporarily and then repack. Of course that's not actually addressing the root cause of the problem. Avery