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

Re: [PATCH] Documentation/git-clone: describe --mirror more verbose

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 4, 2010, 17:29 UTC
Message-ID
<7vlj6d988o.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4CA99E43.1000204@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 6 quoted lines
>> I choosed to write "overwritten" instead of "updated" to make it clearer
>> that it makes no sence to push into these branches from a different
>> source.  Should this be noted more explicit?
>
> "update" may be more Git lingo but I think either is fine. "overwritten"
> makes it clearer this is not a repo to do development in...

In a repository with remote.origin.mirror set to true, "git fetch origin" does not seem to prune a ref that has been removed from the origin. I think that is a design bug, albeit a minor one ("git fetch -p origin" can fix, but "-p" should not be necessary). A "mirror"'s purpose is to, ehh, mirror a remote so that local people can share it as a nearby copy.

A wording that also implies this automatic deletion of a stale ref would be nice; "overwritten" does not exactly sound like that, though.

Previous: Uwe Kleine-KönigNext: Matthieu Moy
Message 14 of 18 in “Documentation/git-clone: describe --mirror more verbose”
  1. Documentation/git-clone: describe --mirror more verboseUwe Kleine-König, Oct 1, 2010
  2. Darren HartOct 1, 2010
  3. Steven RostedtOct 1, 2010
  4. Michael J GruberOct 4, 2010
  5. Uwe Kleine-KönigOct 4, 2010
  6. Michael J GruberOct 4, 2010
  7. Uwe Kleine-KönigOct 4, 2010
  8. Michael J GruberOct 4, 2010
  9. Documentation/git-clone: describe --mirror more verboseUwe Kleine-König, Oct 4, 2010
  10. Steven RostedtOct 4, 2010
  11. Michael J GruberOct 4, 2010
  12. Darren HartOct 4, 2010
  13. Documentation/git-clone: describe --mirror more verboselyUwe Kleine-König, Oct 4, 2010
  14. Junio C HamanoOct 4, 2010
  15. Matthieu MoyOct 4, 2010
  16. Darren HartOct 4, 2010
  17. Uwe Kleine-KönigOct 5, 2010
  18. Junio C HamanoOct 5, 2010

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.