From: Alex Riesen Date: Fri, 20 Apr 2007 13:59:01 GMT Subject: Re: git clone problem through HTTP Message-ID: <81b0412b0704200659g7c5b4339i3915a592d0b7beac@mail.gmail.com> In-Reply-To: <6d6a94c50704200638y7cd3c81aj3ff7f78863f4ab8d@mail.gmail.com> On 4/20/07, Aubrey Li wrote: > On 4/20/07, Julian Phillips wrote: > > On Fri, 20 Apr 2007, Aubrey Li wrote: > > > > > 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. > > 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