# http git clone fails while ssh git clone works

4 messages from 2008-04-03 to 2008-04-03. Participants: Aneesh Kumar, Miklos Vajna, Mike Hommey.
Thread: https://gitlist.dev/t/12972

## Aneesh Kumar, 2008-04-03 11:40

Subject: http git clone fails while ssh git clone works
Message-ID: <cc723f590804030440t14a8e4fdw77c4449dc2a4dbb8@mail.gmail.com>
URL: https://gitlist.dev/e/cc723f590804030440t14a8e4fdw77c4449dc2a4dbb8%40mail.gmail.com

```
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, 2008-04-03 12:51

Subject: Re: http git clone fails while ssh git clone works
Message-ID: <20080403125117.GG3264@genesis.frugalware.org>
URL: https://gitlist.dev/e/20080403125117.GG3264%40genesis.frugalware.org
In-Reply-To: <cc723f590804030440t14a8e4fdw77c4449dc2a4dbb8@mail.gmail.com>

```
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, 2008-04-03 14:52

Subject: Re: http git clone fails while ssh git clone works
Message-ID: <cc723f590804030752k478a3774xdf9727ac22b3047e@mail.gmail.com>
URL: https://gitlist.dev/e/cc723f590804030752k478a3774xdf9727ac22b3047e%40mail.gmail.com
In-Reply-To: <20080403125117.GG3264@genesis.frugalware.org>

```
On Thu, Apr 3, 2008 at 6:21 PM, Miklos Vajna <vmiklos@frugalware.org> wrote:
> 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, 2008-04-03 18:28

Subject: Re: http git clone fails while ssh git clone works
Message-ID: <20080403182815.GA23341@glandium.org>
URL: https://gitlist.dev/e/20080403182815.GA23341%40glandium.org
In-Reply-To: <cc723f590804030440t14a8e4fdw77c4449dc2a4dbb8@mail.gmail.com>

```
On Thu, Apr 03, 2008 at 05:10:07PM +0530, Aneesh Kumar wrote:
> 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

```
