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

"fatal: index-pack failed" on git-clone

From
FAFritz Anderson <fritza@uchicago.edu>
Date
Jul 8, 2009, 15:58 UTC
Message-ID
<C92DE6F3-4F35-469F-AC28-4DDD1D8105C2@uchicago.edu>

I get the error "fatal: index-pack failed" when I attempt to clone a remote bare repository. The repository works well on other machines, including the repository's own.

The repository lives on a version of Mac OS X I'm not allowed to talk about (I repeat: It works well for working copies on other machines, and on its own). The client is RHEL5. Git is version 1.6.3 on both machines, and was built from the tarball.

Here's the debug transcript:

=========== $ sudo GIT_TRACE=1 git clone myusername@remote.example.com:/Users/ myusername/scientia/scientia.git trace: built-in: git 'clone' 'myusername@remote.example.com:/Users/ myusername/scientia/scientia.git' Initialized empty Git repository in /srv/scientia/.git/ trace: run_command: 'ssh' 'myusername@remote.example.com' 'git-upload- pack '\''/Users/myusername/scientia/scientia.git'\''' Password: trace: run_command: 'index-pack' '--stdin' '-v' '--fix-thin' '-- keep=fetch-pack 17580 on local.example.com' trace: exec: 'git' 'index-pack' '--stdin' '-v' '--fix-thin' '-- keep=fetch-pack 17580 on local.example.com' trace: exec failed: No such file or directory trace: exec 'index-pack' failed: No such file or directory fatal: index-pack failed remote: Counting objects: 2797, done. remote: Compressing objects: 100% (2388/2388), done. $ ===========

/Users/myusername/scientia/scientia.git on remote is a symlink to a .git repository on another volume. I've verified that the path is valid.

One post I saw via Google said that attempting to clone large files can choke the process. I've done git-rm on my largest, reconstructable files, to no effect. (Though I suppose it does no good wrt the files that are still in the history.)

I've fooled around with git-verify-pack without result.

Prior to all this, my last push to the repository failed with "[rejected] ... non-fast forward". I got past that with a "git push -- force".

How can I get the clone done?
	— F
Next: Junio C Hamano
Message 1 of 18 in “"fatal: index-pack failed" on git-clone”
  1. Fritz AndersonJul 8, 2009
  2. Junio C HamanoJul 8, 2009
  3. Fritz AndersonJul 8, 2009
  4. Junio C HamanoJul 8, 2009
  5. Fritz AndersonJul 8, 2009
  6. Junio C HamanoJul 8, 2009
  7. Daniel BarkalowJul 8, 2009
  8. Fritz AndersonJul 8, 2009
  9. Fritz AndersonJul 8, 2009
  10. Johannes SixtJul 8, 2009
  11. Jeff KingJul 8, 2009
  12. Fritz AndersonJul 8, 2009
  13. Johannes SixtJul 9, 2009
  14. Junio C HamanoJul 8, 2009
  15. Jeff KingJul 9, 2009
  16. Michael J GruberJul 9, 2009
  17. A Large Angry SCMJul 9, 2009
  18. Jeff KingJul 13, 2009

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.