Re: New repo quickly corrupted
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Nov 15, 2007, 22:01 UTC
- Message-ID
- <alpine.LFD.0.9999.0711151358180.4260@woody.linux-foundation.org>
- In-Reply-To
- <31e9dd080711151350u6c2ae40foc7c05e59496260fa@mail.gmail.com>
On Thu, 15 Nov 2007, Jason Sewall wrote:
>
> find . -type f -exec dos2unix {} +Oops.
You just ran "dos2unix" on all the *git* files!
Which certainly explains why all your old objects got corrupted!
> What's going on?
PEBKAC ;)
To avoid this error in the future, may I suggest using
git ls-files -z | xargs -0 dos2unix
or similar. Please DO NOT write to the .git/objects directory.
Linus