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, 23:24 UTC
Message-ID
<7vty9rtrk4.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20110808230812.GA16974@LK-Perkele-VI.localdomain>
Ilari Liusvaara <ilari.liusvaara@elisanet.fi> writes:
Show 22 quoted lines
> On Mon, Aug 08, 2011 at 11:05:27PM +0200, Sverre Rabbelier wrote:
>> Heya,
>> 
>> On Mon, Aug 8, 2011 at 19:13, Junio C Hamano <gitster@pobox.com> wrote:
>> >>  (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
>> 
>> You said earlier it isn't needed since the server process caches the
>> refs for git and ssh, that leaves dumb-http right?
>
> It seems that everything currently possible falls into three
> categories:
>
> 1) Stateful upload-pack (git://, file://, ssh://, CONNECT): No fix
> needed.
> 2) Stateless upload-pack (smart http://, some bizarre helper):
> Needs fix to avoid races.
> 3) Dumb protocols (dumb http://, ftp://, rsync://): Won't invoke
> upload-pack anyway, no fix needed.
>
> So I think that the only thing that needs the option to allow
> fetching from non-tips is anything using --stateless-rpc.

These (1) and (2) were never meant to be fixes to work around the smart-http protocol limitation; I know "No fix _needed_" and it was never a consideration to decide (or choose not to decide) about these two points.

A separate option would allow admins to let their clients ask to fetch 4bc5fbf (that is v0.99~2) even if that commit is not at the tip of any ref if they choose to. That is what (1) is about, and people who do not want a separate option needs to argue that it is an unnecessary "feature".

Previous: Ilari LiusvaaraNext: Junio C Hamano
Message 7 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.