Skip to contentSkip to conversation

Problem with http URL for stable git tree?

DISCUSSION Tim Bird 4 participants 5 messages Jun 4, 2007 – Jun 13, 2007

lore
Share & tools
lore

Tim Bird

author
#0 lore raw

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
=============================

#1 lore raw
Quoted 8 lines · Tim Bird

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

author
#2 lore raw
Quoted 6 lines · Greg KH
Quoted 5 lines · Tim Bird

Greg,

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

Quoted 8 lines
Quoted 3 lines
$ 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
=============================

#3 lore raw
Quoted 16 lines · Tim Bird
Quoted 6 lines · Greg KH
Quoted 5 lines · Tim Bird

Greg,

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

Quoted 8 lines
Quoted 3 lines
$ 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.

Quoted 8 lines

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?

#4 lore raw
In reply to Tim Bird
Quoted 9 lines · Tim Bird

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.