Page 1 of 1

git checkout fails with http, https and git protocol

Posted: 25 Nov 2014, 21:41
by krichter
Hi,
I tried the following methods to clone the `testdisk` source code with `git` 2.1.0 and got the associated results:

$ LANG=C git clone http://git.cgsecurity.org/testdisk.git
Cloning into 'testdisk'...
error: Recv failure: Connection reset by peer (curl_result = 56, http_code = 0, sha1 = 93663c818d08188ce7828205453362c786ce93b2)
error: Unable to find 93663c818d08188ce7828205453362c786ce93b2 under http://git.cgsecurity.org/testdisk.git
Cannot obtain needed tree 93663c818d08188ce7828205453362c786ce93b2
while processing commit 990c9a93918675323855ee61a95a03ddd36c4f2e.
error: fetch failed.

$ LANG=C git clone https://git.cgsecurity.org/testdisk.git
Cloning into 'testdisk'...
fatal: unable to access 'https://git.cgsecurity.org/testdisk.git/': Failed to connect to git.cgsecurity.org port 443: Connection timed out

$ LANG=C git clone git://git.cgsecurity.org/testdisk.git
Cloning into 'testdisk'...
fatal: unable to connect to git.cgsecurity.org:
git.cgsecurity.org[0: 193.168.50.120]: errno=Connection timed out

My internet connection isn't under heavy load and works for other git checkouts, e.g. `https://github.com/GNOME/nautilus.git`

Any help is appreciated.

-Kalle

Re: git checkout fails with http, https and git protocol

Posted: 26 Nov 2014, 12:07
by cgrenier
I have run a
git gc
on my end. Can you try again

Code: Select all

LANG=C git clone http://git.cgsecurity.org/testdisk.git
?

Re: git checkout fails with http, https and git protocol

Posted: 26 Nov 2014, 14:32
by krichter
Great, now it works :), thank you!