I’m trying to put one of my repositories to another machine. I do
that :

git clone --bare test test.git
scp -r test.git u...@host:~
mv test test.old
git clone ssh://u...@host/~/test.git

And here, big fail :
Cloning into test...
remote: Generating pack...
remote: Done counting 10171 objects.
remote: error: unable to find 719d3089ebb11eba608b13070c4e35be5e3969d6
remote: fatal: unable to get type of object
error: git-upload-pack: git-pack-objects died with error.
fatal: git-upload-pack: aborting due to possible repository corruption
on the remote side.
remote: aborting due to possible repository corruption on the remote
fatal: early EOF
fatal: index-pack failed

I notice that git clone test.git (from my local bare repository) has
no problem.

So, I follow this — in the remote machine :
cd ~/test.git
git --bare fsck-objects --full
broken link from    tree 869a1d54960d405d661e747c1c056a59cc8d2e9b
              to    blob 719d3089ebb11eba608b13070c4e35be5e3969d6
missing blob 719d3089ebb11eba608b13070c4e35be5e3969d6

git --bare ls-tree 869a1d54960d405d661e747c1c056a59cc8d2e9b
160000 blob 719d3089ebb11eba608b13070c4e35be5e3969d6    DesktopChaos

But here is a problem : DesktopChaos is a folder, not a blob, so I
can't use the git-hash-object trick. Any idea ?

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to