Re: Unknown index entry format 40000000

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/10/10, Benedikt Andreas Koeppel <bkoeppel@xxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]