GNOME Bugzilla – Bug 625135
I can't clone or pull the gtk+ repo
Last modified: 2010-08-06 08:31:00 UTC
I get this: $ git clone git://git.gnome.org/gtk+ Cloning into gtk+... fatal: The remote end hung up unexpectedly
I see the same here.
git pull --rebase just worked fine here.
We've seen this before. Please tell us where you're pulling from (what country / location). Can you also run "mtr git.gnome.org" for a few minutes to see if you are experiencing any heavy packet loss. If so paste that as well. It just worked fine for me (California, USA).
Created attachment 166463 [details] Some mtr statistics The connection is from A Coruña, Spain. There are other people in the same room (all with a wifi connection) and they can clone the repo without problems. I can clone other modules without problems.
I used to get 'The remote end hung up unexpectedly' when I tried to clone all of the GNOME packages a few times. Can you verify whether there is a mechanism on git.gnome.org that blocks (temporarily?) connections if somehow it thinks that IP address is abusing?
iptables is clean.
Seems like a bug/behaviour change in recent git versions: http://thread.gmane.org/gmane.comp.version-control.git/151529
Thanks for digging up the link Felix. In case gmane is offline and someone wants to know the workaround, the problem was introduced into git via "9d2e942 decode file:// and ssh:// URLs". It is a bug in the way git handles the "+" character in non-query urls. The workaround is to use an older version of git, or clone: git://git.gnome.org/gtk%2B This bug should be fixed eventually in upstream git.
(In reply to comment #8) > The workaround is to use an older version of git, or clone: > git://git.gnome.org/gtk%2B $ git clone git://git.gnome.org/gtk%2B Initialized empty Git repository in /home/lethal/gnome2/gtk%2B/.git/ fatal: The remote end hung up unexpectedly I'm reopening the bug.
jhbuild gave me: *** Checking out gtk+ *** [22/36] git clone git://git.gnome.org/gtk+ Cloning into gtk+... fatal: The remote end hung up unexpectedly *** Error during phase checkout of gtk+: ########## Error running git clone git://git.gnome.org/gtk+ *** [22/36] tried to check it out manually from git://git.gnome.org/gtk+, got the same error git clone 'git://git.gnome.org/gtk%2B' worked git version 1.7.2 on Ubuntu 10.04
If you have an already checkout repository and have updated your git client, you can still work with it without cloning a new one with this workaround: - edit gtk+/git/config - replace: url = ssh://XXX@git.gnome.org/git/gtk+ with: url = ssh://XXX@git.gnome.org/git/gtk%2B
Same for me. The problem is apparently git and I was told that it was fixed in 1.7.2.1. So I propose to close this bug as NOTGNOME. Feel free to revert. Luca, if "git clone 'git clone 'git://git.gnome.org/gtk%2B'" doesn't work for you, please tell us, which version you are using.
(In reply to comment #12) > Same for me. The problem is apparently git and I was told that it was fixed in > 1.7.2.1. So I propose to close this bug as NOTGNOME. Feel free to revert. > > Luca, if "git clone 'git clone 'git://git.gnome.org/gtk%2B'" doesn't work for > you, please tell us, which version you are using. I have git 1.7.1, perhaps I have to wait for debian sid to ship 1.7.2. Thanks.
git 1.7.2.1 on the client side doesn't fix this, can you please reopen the bug? $ git --version git version 1.7.2.1 $ git clone 'git://git.gnome.org/gtk+' Cloning into gtk+... fatal: The remote end hung up unexpectedly $ git clone 'git://git.gnome.org/gtk%2b' Cloning into gtk%2b... remote: Counting objects: 233755, done.
While unfortunate, this is a bug in your git client. There is no reason to re-open this bug.
*** Bug 626164 has been marked as a duplicate of this bug. ***