2007-06-04 19:26:49

by Tim Bird

[permalink] [raw]
Subject: Problem with http URL for stable git tree?

Greg,

I'm having problems cloning the stable git tree for 2.6.21.
Here's what I get:

$ git clone http://www.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.21.y.git stable-2.6.21.y
Cannot get remote repository information.
Perhaps git-update-server-info needs to be run there?

------
I believe I cloned this tree a few weeks ago successfully.
Did something break?

Thanks,
-- Tim

=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Corporation of America
=============================


2007-06-04 21:19:42

by Greg KH

[permalink] [raw]
Subject: Re: Problem with http URL for stable git tree?

On Mon, Jun 04, 2007 at 12:10:01PM -0700, Tim Bird wrote:
> Greg,
>
> I'm having problems cloning the stable git tree for 2.6.21.
> Here's what I get:
>
> $ git clone http://www.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.21.y.git stable-2.6.21.y
> Cannot get remote repository information.
> Perhaps git-update-server-info needs to be run there?

Ick, don't clone by "http://", please use the git protocol instead:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.21.y.git

that should work better.

thanks,

greg k-h

2007-06-04 21:51:22

by Tim Bird

[permalink] [raw]
Subject: Re: Problem with http URL for stable git tree?

Greg KH wrote:
> On Mon, Jun 04, 2007 at 12:10:01PM -0700, Tim Bird wrote:
>> Greg,
>>
>> I'm having problems cloning the stable git tree for 2.6.21.
>> Here's what I get:
>>
>> $ git clone http://www.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.21.y.git stable-2.6.21.y
>> Cannot get remote repository information.
>> Perhaps git-update-server-info needs to be run there?
>
> Ick, don't clone by "http://", please use the git protocol instead:
> git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.21.y.git
>
> that should work better.

I'm behind a firewall that doesn't allow it. Luckily, the
firewall has some holes to allow me ssh access to a few
external machines. It looks like I can use a "git:" url on a
box outside the firewall, then clone that to inside Sony
with a "git+ssh:" url.

I'll do that, unless someone else has a better suggestion.
Pushes and pulls will be two steps each, but at least it works.
-- Tim

=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Corporation of America
=============================

2007-06-05 06:17:00

by Tuncer Ayaz

[permalink] [raw]
Subject: Re: Problem with http URL for stable git tree?

On 6/4/07, Tim Bird <[email protected]> wrote:
> Greg KH wrote:
> > On Mon, Jun 04, 2007 at 12:10:01PM -0700, Tim Bird wrote:
> >> Greg,
> >>
> >> I'm having problems cloning the stable git tree for 2.6.21.
> >> Here's what I get:
> >>
> >> $ git clone http://www.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.21.y.git stable-2.6.21.y
> >> Cannot get remote repository information.
> >> Perhaps git-update-server-info needs to be run there?
> >
> > Ick, don't clone by "http://", please use the git protocol instead:
> > git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.21.y.git
> >
> > that should work better.
>
> I'm behind a firewall that doesn't allow it. Luckily, the
> firewall has some holes to allow me ssh access to a few
> external machines. It looks like I can use a "git:" url on a
> box outside the firewall, then clone that to inside Sony
> with a "git+ssh:" url.
>
> I'll do that, unless someone else has a better suggestion.
> Pushes and pulls will be two steps each, but at least it works.

if you have :22 outbound access you could try git+ssh on git.kernel.org.
I guess you don't have :22 outbound open, do you?

2007-06-13 20:34:51

by Phillip Susi

[permalink] [raw]
Subject: Re: Problem with http URL for stable git tree?

Tim Bird wrote:
> I'm behind a firewall that doesn't allow it. Luckily, the
> firewall has some holes to allow me ssh access to a few
> external machines. It looks like I can use a "git:" url on a
> box outside the firewall, then clone that to inside Sony
> with a "git+ssh:" url.
>
> I'll do that, unless someone else has a better suggestion.
> Pushes and pulls will be two steps each, but at least it works.
> -- Tim

I thought there was a switch somewhere to override the command executed
on the other machine? You could try pulling from the machine outside
the firewall via ssh, and changing the command from git-upload-pack to
another ssh command to connect to kernel.org and invoke git-upload-pack
there. That should bounce the connection off the one machine you can
ssh to outside the firewall.