Re: Unknown index entry format 40000000
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Mar 10, 2010, 12:10 UTC
- Message-ID
- <fcaeb9bf1003100410j15ebd863ta4a2b817b28ac0f6@mail.gmail.com>
- In-Reply-To
- <9EE6DBC4-B025-48A1-B475-433DE5918F39@ee.ethz.ch>
On 3/10/10, Benedikt Andreas Koeppel <bkoeppel@ee.ethz.ch> wrote:
Show 25 quoted lines
> Hello, > > I've set core.sparseCheckout true and added a .git/info/sparse-checkout file: > * > !source/crn/ > !source/maemo-beagle/ > !source/maemo-kernel/ > !source/u-boot/ > > After that, I did > git co -- . > git reset --hard HEAD > > Now, I want to do > git pull > but I get an error: > > beninb:git beni$ git pull -v > From gmuasch:ife-maemo > = [up to date] master -> origin/master > fatal: Unknown index entry format 40000000 > > I have git version 1.7.0.2, Mac OS X 10.6.2 on HFS+ case-*in*sensitive. > > I found that this error comes from read-cache.c, line 1235. What does this error message mean? How can I make my repo working again?
It means git does not understand flag 0x40000000. Git 1.7.0.2 should understand that bit. I can only guess that "git pull" is from older version, or it ran a git command from older build. Do you have two versions of git on that machine?
You can turn off sparse checkout. That would remove all 0x4000000 flags, which makes the index compatible with old versions again:
cp .git/info/sparse-checkout sparse-checkout.saved echo '*' > .git/info/sparse-checkout git checkout
If it does not work, removing the index (.git/index) would do the trick.
-- Duy