threads / discuss / 22975

Unknown index entry format 40000000

Subject: Unknown index entry format 40000000

## tl;dr

3 messages between Mar 10, 2010 and Mar 10, 2010.

replies: 2people: 2as markdown or json

Benedikt Andreas Koeppel· Mar 10, 2010, 10:45 UTC · lore
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?

Thanks and Best Regards, Benedikt Köppel

Nguyen Thai Ngoc Duy· Mar 10, 2010, 12:10 UTC · re: Benedikt Andreas Koeppel · lore

Re: Unknown index entry format 40000000

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
Benedikt Andreas Koeppel· Mar 10, 2010, 13:00 UTC · re: Nguyen Thai Ngoc Duy · lore

Re: Unknown index entry format 40000000

Hello
Am 10.03.2010 um 13:10 schrieb Nguyen Thai Ngoc Duy:
>> 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.
>> 
> 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?
Yep, removing version 1.6 and re-installing 1.7.0.2 solved the problem.

Thank you very much. Best Regards, Benedikt Köppel

← back to recent threads