git checkout fails with http, https and git protocol Topic is solved

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
krichter
Posts: 4
Joined: 25 Nov 2014, 21:13

git checkout fails with http, https and git protocol

#1 Post 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

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

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

#2 Post 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
?

krichter
Posts: 4
Joined: 25 Nov 2014, 21:13

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

#3 Post by krichter »

Great, now it works :), thank you!

Locked