From: Jason Sewall Date: Thu, 15 Nov 2007 21:59:33 GMT Subject: Re: New repo quickly corrupted Message-ID: <31e9dd080711151359y1504e58cp994e828d44660c7@mail.gmail.com> In-Reply-To: <7vejer41ib.fsf@gitster.siamese.dyndns.org> On Nov 15, 2007 4:55 PM, Junio C Hamano wrote: > "Jason Sewall" writes: > > > find . -type f -exec dos2unix {} + > > git commit -a --amend > > [accept same message] > > git fsck > > [same error message as above] > > > > I just built my git today, unmodified: > > git version 1.5.3.5.721.g039b > > > > What's going on? > > Carelessness is what is going on. > > Notice how nicely your "find . -type f -exec dos2unix {}" goes > down to .git/objects and eats your loose objects > > You probably wanted to do > > git ls-files | xargs dos2unix > > instead. > Sure enough. I'll chalk that one up to too many mind-numbing meetings today. Thanks for the wake-up...