views:

169

answers:

2

I am running git daemon with the following command.

c:\cygwin\bin\git daemon --reuseaddr --base-path=/cygdrive/S --export-all --verbose --enable=receive-pack

I am able to clone and pull updates but when I try to push I get

$ git push origin master

Counting objects: 6, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (6/6)

, then it hangs

I am currently using git version 1.7.0.4

A: 

I have the same problem (Ubunut as git server 1.7.0.4, Windows Msysgit is git client 1.7.0.2). While it is ok if I use ubuntu git client.

I updated the client to 1.7.1.0, it doesn't help

I use git-daemon to manage the repo (enable receive-back server), and it is a problem. (msysgit with gitdaemon)

When I switch to gitolite, the problem disappear.

Suggest to use git-daemon for read-only

larrycai
What SSH client are you using?Have you got Cygwin installed alongside with Msysgit?
Tomek Szpakowicz
I use openssh which is in the package from msysgit (openssh_4.6p1).And I didn't install cygwin.
larrycai
btw: how can I check which ssh is used in git, since I switched to putty (plink), it is the same error
larrycai
I'm using putty on the client. I have cygwin installed on the server where I run git daemon. From the bash on the client I type: git push git://<path to the repo> master
JasonRed
+1  A: 

I had the same (similar?) problem with cygwin git. After one cygwin's update it stopped working properly with remote git repos, both on linux and cygwin.

At first it looked random and was hard to identify. Some commands worked, some failed. It looks like it was connected to the size of data being transferred.

I believe it's a client-side problem with SSH in cygwin as other git clients can connect normally. For me solution was to install msysgit and choose at install its own SSH client, not cygwin's. Putty should work as well, I guess.

Tomek Szpakowicz