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

Re: Push force-with-lease with multi-URL remote

From
CHChristopher Head <chead@chead.ca>
Date
Jul 29, 2019, 13:47 UTC
Message-ID
<20190729064741.005bc16a@amdahl.home.chead.ca>
In-Reply-To
<xmqq7e81vuc3.fsf@gitster-ct.c.googlers.com>

On Mon, 29 Jul 2019 06:33:32 -0700 Junio C Hamano <gitster@pobox.com> wrote:

> I agree but only if the listed ones are separate ones.  If the URLs
> are separate paths to reach the same remote (e.g. https:// and ssh://
> going to the same place), the current definition would make more
> sense.

I realize I’m a bit biased towards my personal use case, but I wonder if it would make sense to consider how frequently each case occurs?

Case 1: someone wants to keep multiple repos mirrored, by always pushing to all of them (my use case).

Case 2: someone wants to push to one repo, but vagaries of Internet connectivity mean that sometimes they can’t use SSH and other times they can’t use HTTP (or they prefer one protocol but sometimes that one doesn’t work), therefore they want both URLs so that when one fails the other may work. I suppose the most common situation in this case is that you want to use SSH so that you don’t have to type a password, but sometimes you’re in a site which only allows HTTP connections and typing a password as a fallback is preferable to failing altogether?

For me, case 1 happens quite frequently but case 2 pretty much never—I don’t think I’ve ever been somewhere that blocks port 22 outbound, so I always just use SSH. But I realize other people’s experience varies.

-- 
Christopher Head
Previous: Junio C HamanoNext: Jeff King
Message 9 of 12 in “Push force-with-lease with multi-URL remote”
  1. Christopher HeadJul 27, 2019
  2. Junio C HamanoJul 27, 2019
  3. Christopher HeadJul 27, 2019
  4. Junio C HamanoJul 27, 2019
  5. Christopher HeadJul 27, 2019
  6. Junio C HamanoJul 29, 2019
  7. Jeff KingJul 29, 2019
  8. Junio C HamanoJul 29, 2019
  9. Christopher HeadJul 29, 2019
  10. Jeff KingJul 29, 2019
  11. Junio C HamanoJul 29, 2019
  12. Jeff KingJul 29, 2019

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.