git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git clone problem through HTTP

From
Alex Riesen <raa.lkml@gmail.com>
Date
Apr 20, 2007, 13:59 UTC
Message-ID
<81b0412b0704200659g7c5b4339i3915a592d0b7beac@mail.gmail.com>
In-Reply-To
<6d6a94c50704200638y7cd3c81aj3ff7f78863f4ab8d@mail.gmail.com>
On 4/20/07, Aubrey Li <aubreylee@gmail.com> wrote:
Show 12 quoted lines
> On 4/20/07, Julian Phillips <julian@quantumfyre.co.uk> 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.
Show 6 quoted lines
> > 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

Previous: Aubrey LiNext: Brian Gernhardt
Message 5 of 11 in “git clone problem through HTTP”
  1. Aubrey LiApr 20, 2007
  2. Julian PhillipsApr 20, 2007
  3. Medve Emilian-EMMEDVE1Apr 20, 2007
  4. Aubrey LiApr 20, 2007
  5. Alex RiesenApr 20, 2007
  6. Brian GernhardtApr 20, 2007
  7. Julian PhillipsApr 20, 2007
  8. Junio C HamanoApr 20, 2007
  9. Junio C HamanoApr 20, 2007
  10. Junio C HamanoApr 20, 2007
  11. Aubrey LiApr 22, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.