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

Re: [PATCH 2/3] remote: separate the concept of push and fetch mirrors

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 30, 2011, 22:22 UTC
Message-ID
<7v62r0meok.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20110330205734.GA2940@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 8 quoted lines
> I think the problem is not that users lack common sense. It is that we
> give them an option called "--mirror" that sets up a bogus config in
> some circumstances. So it is the git developers who lack common sense, I
> think. :)
>
> Specifically, 84bb2df should not have started setting "remote.*.mirror",
> as it was already about fetching into a bare repository. And probably
> --mirror in a non-bare repo should have complained from the beginning.

What I meant was that what 84bb2df did was sufficient for people who know which one they wanted and stuck with what they said they wanted.

What would we call a person who first asks "I want a push mirror to save away my work" and then says "now let's fetch from there", without realizing that such a fetch will obliterate his work? I agree that it probably is asking a bit more than "common sense"; it perhaps requires an ability to think for 5 minutes what oneself is doing ;-).

> But hey, hindsight is 20/20.
Indeed.
Thanks.
Previous: Jeff KingNext: chris
Message 8 of 13 in “checkout new branch tracks wrong remote (bug?)”
  1. chrisMar 30, 2011
  2. Jeff KingMar 30, 2011
  3. 0/3 better "remote add --mirror" semanticsJeff King, Mar 30, 2011
  4. 1/3 remote: disallow some nonsensical option combinationsJeff King, Mar 30, 2011
  5. 2/3 remote: separate the concept of push and fetch mirrorsJeff King, Mar 30, 2011
  6. Junio C HamanoMar 30, 2011
  7. Jeff KingMar 30, 2011
  8. Junio C HamanoMar 30, 2011
  9. chrisMar 31, 2011
  10. chrisMar 31, 2011
  11. Junio C HamanoMar 31, 2011
  12. chrisMar 31, 2011
  13. 3/3 remote: deprecate --mirrorJeff King, Mar 30, 2011

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.