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

Re: git push mirror mode V4 (replacement stack)

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 12, 2007, 21:35 UTC
Message-ID
<7vd4uf2lld.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20071112110016.GG301@shadowen.org>
Andy Whitcroft <apw@shadowen.org> writes:
Show 9 quoted lines
> On Fri, Nov 09, 2007 at 11:30:41PM +0000, Andy Whitcroft wrote:
>> Following this mail is a complete replacement git push mirror mode
>> stack (V4).  It folds down all the various patches into a logical
>> sequence (thanks Dscho).  This stack passes the entire test suite,
>> and I have been using the same code for real work here.
>
> Ok, I have spotted one oddity with this feature.  The symbolic refs are
> getting converted to real refs in the mirror.  Generally speaking this
> is the <remote>/HEAD refs but I guess it may be possible to have others.
Currently there is no way to remotely create a symref.

It should be easy to make DAV based http push create a symref file.

The native "send-pack" protocol does not support such feature, so this needs a protocol extension, which hopefully would be not too involved.

Also, to be symmetric, we would need a protocol extension on the "fetch-pack" protocol side to allow fetchers to find out which one is a symref pointing out what other ref. The lack of the information is why git-clone has to guess.

Previous: Andy Whitcroft
Message 7 of 7 in “git push mirror mode V4 (replacement stack)”
  1. Andy WhitcroftNov 9, 2007
  2. 1/4 Teach send-pack a mirror modeAndy Whitcroft, Nov 9, 2007
  3. 3/4 Add tests for git push'es mirror modeAndy Whitcroft, Nov 9, 2007
  4. 2/4 git-push: plumb in --mirror modeAndy Whitcroft, Nov 9, 2007
  5. 4/4 git-push: add documentation for the newly added --mirror modeAndy Whitcroft, Nov 9, 2007
  6. Andy WhitcroftNov 12, 2007
  7. Junio C HamanoNov 12, 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.