# Unknown index entry format 40000000

3 messages from 2010-03-10 to 2010-03-10. Participants: Benedikt Andreas Koeppel, Nguyen Thai Ngoc Duy.
Thread: https://gitlist.dev/t/22975

## Benedikt Andreas Koeppel, 2010-03-10 10:45

Subject: Unknown index entry format 40000000
Message-ID: <9EE6DBC4-B025-48A1-B475-433DE5918F39@ee.ethz.ch>
URL: https://gitlist.dev/e/9EE6DBC4-B025-48A1-B475-433DE5918F39%40ee.ethz.ch

```
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, 2010-03-10 12:10

Subject: Re: Unknown index entry format 40000000
Message-ID: <fcaeb9bf1003100410j15ebd863ta4a2b817b28ac0f6@mail.gmail.com>
URL: https://gitlist.dev/e/fcaeb9bf1003100410j15ebd863ta4a2b817b28ac0f6%40mail.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:
> 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, 2010-03-10 13:00

Subject: Re: Unknown index entry format 40000000
Message-ID: <0887243A-1CD5-4905-A9FE-46DBEF7F139E@ee.ethz.ch>
URL: https://gitlist.dev/e/0887243A-1CD5-4905-A9FE-46DBEF7F139E%40ee.ethz.ch
In-Reply-To: <fcaeb9bf1003100410j15ebd863ta4a2b817b28ac0f6@mail.gmail.com>

```
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

```
