I am in the process of figuring out how to get Eclipse (Windows 7) working against our freshly git-migrated CVS repository which I have put in gitosis on an Ubuntu 10.04.1 LTS host. All software is installed with apt-get (git, gitosis, etc.).
Eclipse with egit hangs when trying to check out, so I am playing with command line clients. Cygwin has git and openssh, so I’d like that to work at least (then we can use Eclipse against the local copy). To do only babysteps I have cloned the gitosis repository on another Ubuntu host with more diskspace, and try to clone that on my Windows box.
I get the following error message which puzzles me quite a bit:
tra@TRA /cygdrive/c/Users/tra/git
$ git clone ravn@10.49.160.91:/home/ravn/cvs2git/git00
Cloning into git00...
Enter passphrase for key '/home/tra/.ssh/id_rsa':
remote: Counting objects: 64045, done.
remote: Compressing objects: 100% (17965/17965), done.
fatal: The remote end hung up unexpectedly.98 MiB | 8.21 MiB/s
fatal: early EOFs: 98% (62852/64045), 310.98 MiB | 8.21 MiB/s
fatal: index-pack failed
git is 1.7.0.4 on the Ubuntu box, and 1.7.2.3 in Cygwin. scp and sftp work nicely.
Is there some Voodoo-trick I need to know to make this work?
First you should publish your public ssh key to
10.49.160.91:/home/ravn/.ssh/authorized_keysfile in order to not have to enter your passphrase anymore.Second this kind of error usually takes place in an interop environment, with files having the same name but with different case.
Can you check if you have such a problem here.
Make sure also to:
core.autocrlfto false.core.ignorecaseis set to false (its default value)As an alternative (as the OP Thorbjørn found out), try git checkout from the msysgit version, based on mingw (instead of the git packaged with cygwin)