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

Re: [RFC] helping smart-http/stateless-rpc fetch race

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 8, 2011, 05:03 UTC
Message-ID
<7vbow01ols.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAJo=hJvdMCyU-5wzy0p1r+QJxXU=DJTE+Mu5G6pk9iAwAD51mA@mail.gmail.com>
Shawn Pearce <spearce@spearce.org> writes:
> Why a new --allow-non-tip flag? Why not always do this with the
> existing --stateless-rpc flag?

It certainly would be much easier from implementation point of view, but I did it that way for two and half reasons:

 (1) It might make sense to give admins who run upload-pack not behind
     smart-http an option to allow fetching from a non-tip; and
 (2) It also might make sense to let admins who do run upload-pack behind
     smart-http force re-fetching when the race is encountered.

and the remaining half-reason was that I was too lazy to think things through to refute the above two "might make sense" and convince myself that they should instead be "is not necessary".

Previous: Shawn PearceNext: Junio C Hamano
Message 3 of 10 in “[RFC] helping smart-http/stateless-rpc fetch race”
  1. Junio C HamanoAug 5, 2011
  2. Shawn PearceAug 6, 2011
  3. Junio C HamanoAug 8, 2011
  4. Junio C HamanoAug 8, 2011
  5. Sverre RabbelierAug 8, 2011
  6. Ilari LiusvaaraAug 8, 2011
  7. Junio C HamanoAug 8, 2011
  8. Junio C HamanoAug 8, 2011
  9. Shawn PearceAug 8, 2011
  10. Junio C HamanoAug 8, 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.