cannot pread pack
I'm trying to do a git pull (with no arguments) from the remote repository from which my local repository was originally cloned. I get
remote: Counting objects: 1272, done.
remote: Compressing objects: 100% (897/897), done.
remote: Total 1127 (delta 588), reused 404 (delta 218) Receiving objects: 100% (1127/1127), 1.18 MiB | 45 KiB/s, done.
fatal: cannot pread pack file: No such file or directory
fatal: index-pack failed
Does anyone know what causes this and how to recover from it if that is possible? Deleting my local repository and re-cloning makes the problem go away for a few months and several pulls and commits, but eventually it reappears and once reappeared is reproducible. Other users of the same remote repository don't see this problem.
I'm running under SUSE 11.1 Linux 2.6.27.39-0.2-default #1 SMP 2009-11-23 12:57:38 +0100 x86_64 x86_64 x86_64 GNU/Linux using git version 1.6.0.2, which is the latest built release for SUSE 11.1.
I have a copy of the local repository, but the remote repository will probably have changed by the time anyone responds to this.
Richard Parkins
Quoted 4 lines · richard parkins
fatal: cannot pread pack file: No such file or directory
fatal: index-pack failedI'm running under SUSE 11.1 Linux 2.6.27.39-0.2-default #1 SMP 2009-11-23 12:57:38 +0100
x86_64x86_64x86_64GNU/Linux using git version 1.6.0.2, which is the latest built release for SUSE 11.1.
Upgrade Git. The pread() bug was fixed post 1.6.0.2, I don't remember what version, but I would suggest moving to one of the later 1.7.x releases.
Signature · 1 line
Shawn.
Quoted 3 lines · Shawn Pearce
Upgrade Git. The
pread()bug was fixed post 1.6.0.2, I don't remember what version, but I would suggest moving to one of the later 1.7.x releases.
Yep. Probably v1.6.0.3~23 (fix pread()'s short read in index-pack, 2008-10-09). The maint-1.6.0 branch has many other nice fixes, in case you need to avoid version numbers starting with "1.7" or "1.6.6" for whatever reason.