threads / discuss / 12972

http git clone fails while ssh git clone works

Subject: http git clone fails while ssh git clone works

## tl;dr

4 messages between Apr 3, 2008 and Apr 3, 2008.

replies: 3people: 3as markdown or json

Aneesh Kumar· Apr 3, 2008, 11:40 UTC · lore
git clone http://myhost...

ot 0bc8afe5e1f16a6c56bc677a6c85148455a474b3 got ee425b0b7fccd9cdea38ef781b76f034e0228391 error: Unable to find 31053805b6981918e1f39e7149f62d2a0068732a under http://myhost..... Cannot obtain needed commit 31053805b6981918e1f39e7149f62d2a0068732a while processing commit 56933610fa9a36ea3fc053e02bd7442b55db85dd.

while git clone ssh://myhost... works fine.
The repo actually have the commit

git --git-dir=a.git show 31053805b6981918e1f39e7149f62d2a0068732a shows the commit.

-aneesh
Miklos Vajna· Apr 3, 2008, 12:51 UTC · re: Aneesh Kumar · lore

Re: http git clone fails while ssh git clone works

On Thu, Apr 03, 2008 at 05:10:07PM +0530, Aneesh Kumar <aneesh.kumar@gmail.com> wrote:
> while git clone ssh://myhost... works fine.
did you run git update-server-info?
Aneesh Kumar· Apr 3, 2008, 14:52 UTC · re: Miklos Vajna · lore

Re: http git clone fails while ssh git clone works

On Thu, Apr 3, 2008 at 6:21 PM, Miklos Vajna <vmiklos@frugalware.org> wrote:
Show 5 quoted lines
> On Thu, Apr 03, 2008 at 05:10:07PM +0530, Aneesh Kumar <aneesh.kumar@gmail.com> wrote:
>  > while git clone ssh://myhost... works fine.
>
>  did you run git update-server-info?
>
yes.
-aneesh
Mike Hommey· Apr 3, 2008, 18:28 UTC · re: Aneesh Kumar · lore

Re: http git clone fails while ssh git clone works

On Thu, Apr 03, 2008 at 05:10:07PM +0530, Aneesh Kumar wrote:
Show 10 quoted lines
> git clone http://myhost...
> 
> ot 0bc8afe5e1f16a6c56bc677a6c85148455a474b3
> got ee425b0b7fccd9cdea38ef781b76f034e0228391
> error: Unable to find 31053805b6981918e1f39e7149f62d2a0068732a under
> http://myhost.....
> Cannot obtain needed commit 31053805b6981918e1f39e7149f62d2a0068732a
> while processing commit 56933610fa9a36ea3fc053e02bd7442b55db85dd.
> 
> while git clone ssh://myhost... works fine.

Can you try again with GIT_CURL_VERBOSE set ? It will probably show you what http request is failing and why.

Mike

← back to recent threads