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

Re: unable to get type of object

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 1, 2011, 09:39 UTC
Message-ID
<m3ei3dyjqe.fsf@localhost.localdomain>
In-Reply-To
<4DE5E60B.2030903@garrigos.cat>
Robert Garrigos <robert@garrigos.cat> writes:
Show 20 quoted lines
> I'm having one of those nasty 128 errors which I cannot debug:
> 
> ************
> predircam@eduab:~/public_html/idosing> git pull
> Generating pack...
> Done counting 117 objects.
> error: unable to find c3117d23df0c01ba8558bad81ad3488f0e8d430a
> fatal: unable to get type of object c3117d23df0c01ba8558bad81ad3488f0e8d430a
> fatal: early EOF
> fatal: git-unpack-objects died with error code 128
> Fetch failure: /home/predircam/gitrepos/idosing.git
> ***************
> 
> google suggests me to run git fsck to get a list of corrupted
> files. Besides that I'm running git 1.2.4 and that the git command for
> that version is fsck-objects, I'm not having any result at all.
> 
> Could this be a compatibility problem? As I said, I run git 1.2.4 on
> the repo server and git 1.7.0.2 on my development server. BTW, on my
> devel server running the git command fsck gives no result either.

Do this repository uses submodules? IIRC pre 1.4.x (or even later) git didn't understand modules.

Or it might be problem with deltabaseoffset, i.e. when objects is stored in pack as a difference (delta) from other objects, it refers to base by offset in pack, and not by sha-1 id. I don't remember if ancient 1.2.4 supports this feature. This is more likely.

Why don't you upgrade git (perhaps installing it locally in your home directory)?

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Robert GarrigosNext: Robert Garrigos
Message 2 of 5 in “unable to get type of object”
  1. Robert GarrigosJun 1, 2011
  2. Jakub NarebskiJun 1, 2011
  3. Robert GarrigosJun 1, 2011
  4. Jeff KingJun 1, 2011
  5. Tomas CarneckyJun 1, 2011

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.