tags:

views:

138

answers:

1

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 [email protected]:/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?

+1  A: 
  • First you should publish your public ssh key to 10.49.160.91:/home/ravn/.ssh/authorized_keys file 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:

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)

VonC
Thanks. Right now, I'll live with the authorized_keys missing, as it tells me that the key is recognized by the other end. It turned out that the git in msysgit can check out the files, so I'll use that for now and come back to the cygwin one later.
Thorbjørn Ravn Andersen
@Thorbjørn: good point. I have added your suggestion (using msysgit instead of cygwin git) in my answer.
VonC