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

Re: Teach git-fetch(1) to use a quarantine directory

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 17, 2023, 23:56 UTC
Message-ID
<xmqqcz0qdre2.fsf@gitster.g>
In-Reply-To
<87edl6bx7o.fsf@iotcl.com>
Toon Claes <toon@iotcl.com> writes:
> 1) Does it even make sense to make use git-fetch(1) use a quarantine
>    directory?

What's the goal here? If the push gets rejected, remove the incoming packfile data together with quarantine repository? Who will be doing such a rejection and how? Does something run in the quarantine repository as its main repository while using the final one as an alternate (presumably some form of hooks) to make that decision? If these goals do not make sense, then no, it does not make sense to teach "fetch" to use a quarantine directory. Otherwise, teaching "fetch" would be a reasonable way to go forward.

It is a separate issue if the mechanisms added (if any) when we tought receive-pack to use a quarantine repository are directly applicable, if if they need some twaking, in order to reuse them in the context of "git fetch". But their needing some tweaking does not mean that it does not make sense to try teaching "fetch" to use quarantine repository.

Thanks.
Previous: Jonathan Tan
Message 5 of 5 in “Teach git-fetch(1) to use a quarantine directory”
  1. Toon ClaesJul 17, 2023
  2. Taylor BlauJul 17, 2023
  3. Patrick SteinhardtJul 19, 2023
  4. Jonathan TanJul 17, 2023
  5. Junio C HamanoJul 17, 2023

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.