Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

java - Cygwin "git clone" gives "remote end hung up unexpectedly" against Ubuntu 10.04.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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
  • 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)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...