Thread (7 messages) flat view 7 messages, 5 authors, 2016-06-15

Re: git clone problem through HTTP

From: Alex Riesen <hidden>
Date: 2016-06-15 22:43:06

On 4/20/07, Aubrey Li [off-list ref] wrote:
On 4/20/07, Julian Phillips [off-list ref] wrote:
quoted
On Fri, 20 Apr 2007, Aubrey Li wrote:
quoted
I'm behind of a firewall on which the git port is not permitted, so I
can only use http protocol. Unfortunately, I can't clone linus' git
tree at all.
Linus packs his refs, which means that currently you can't clone using
http, with any version of git.
I really don't understand why packed refs or not depend on the protocol.
It doesn't make any sense.
It does. And the program you using is currently maintainerless.
quoted
Try http://repo.or.cz/r/linux-2.6.git/ instead?  This appears to be a
straight clone, but without packed refs.
Does git support to update working copy to a different URL? for
example, I clone the repo through GIT, and switch the working copy to
HTTP, is it possible?
Yes. Just edit you remote to point somewhere else. Looks for
"remote" in .git/config or .git/remotes/origin.
Or clone it from http://repo.or.cz/r/linux-2.6.git, and switch it to
www.kernel.org?
Whatever, works anyway:

$ git clone --reference /home/auli/linux-2.6.git \
http://repo.or.cz/r/linux-2.6.git linux-2.6.or.cz
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help