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

Re: [PATCH] Teach "git remote" a mirror mode

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 3, 2007, 08:13 UTC
Message-ID
<7vmyw4majd.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<Pine.LNX.4.64.0709022101290.28586@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> When using the "--mirror" option to "git remote add", the refs will not
> be stored in the refs/remotes/ namespace, but in the same location as
> on the remote side.

Thanks. With this and the "git remote rm" I think we would be in much better shape. Another thing that would be needed further before we can rewriting git-clone would be the "guessing where HEAD points at" and we would be in a very good shape.

I notice you did not add any tests, though...
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 4 of 5 in “Teach "git remote add" a mirror mode”
  1. Teach "git remote add" a mirror modeJohannes Schindelin, Sep 2, 2007
  2. Junio C HamanoSep 2, 2007
  3. Teach "git remote" a mirror modeJohannes Schindelin, Sep 2, 2007
  4. Junio C HamanoSep 3, 2007
  5. Johannes SchindelinSep 3, 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.