I've read several other 'git hangs on clone' questions, but none match my environment and details. I'm using git built under cygwin (msys git is not an option) to clone a repo from a Linux host over SSH.
git clone user@host:repo
I've tested against the same host on other platforms, and it works fine, but on this Windows machine the clone hangs indefinitely. I set GIT_TRACE=1
and it looks like the problem is with this command:
'ssh' 'user@host' 'git-upload-pack '\''repo'\'''
My SSH keys are set up correctly: ssh user@host
works fine. When I run the command, I get a bunch of output that ends like this:
...
003dbbd3db63763922ad75bbeefa3811dce001576851 refs/tags/start
0000
Then it hangs for 20+ minutes, which is the longest I've waited before killing it.
The server has Git 1.7.11.7 with OpenSSH 5.9p1, while the client has Git 1.7.9 with OpenSSH 6.1p1.
Is that supposed to be the end of the git-upload-pack output? Is this a bug in Git or my configuration?
git-upload-pack
. It is waiting for you (well, your git client) to do some negotiation where you request something, telling it what you want and what you have. You really cannot use any other git client for troubleshooting?strace
to find out which kernel calls the client issues. This can give a more detailed view about which part failed.