git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Benedikt Andreas KoeppelNext: Benedikt Andreas Koeppel
Message 2 of 3 in “Unknown index entry format 40000000”
  1. Benedikt Andreas KoeppelMar 10, 2010
  2. Nguyen Thai Ngoc DuyMar 10, 2010
  3. Benedikt Andreas KoeppelMar 10, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.