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

Re: [RFC PATCH] receive-pack: run post-receive before reporting status

From
RJRobin Jarry <robin.jarry@6wind.com>
Date
Nov 6, 2021, 21:32 UTC
Message-ID
<CFJ0O7HEP2TY.NSQD8094SYCF@diabtop>
In-Reply-To
<211106.86y261g88n.gmgdl@evledraar.gmail.com>
Hi Ævar,
Ævar Arnfjörð Bjarmason, Nov 06, 2021 at 06:03:
> FWIW we include the date when mentioning commits. E.g. ec7dbd145bd
> (receive-pack: allow hooks to ignore its standard input stream,
> 2014-09-12).
OK, noted.
> I think the discussion at [1] is current to everything you're seeing
> here.
Thanks I had missed this thread.
> tl;dr: Even with this change you're not guaranteed to run your hook.
[snip]
Show 5 quoted lines
> But as noted in [1] there's a way forward to having our cake & eating it
> too. I.e. when we into that on the server-side we can try a little
> harder not to die, and run post-receive anyway, and in either case it
> would be nice if we'd run it after disconnecting from the client, so it
> doesn't have to wait for it.

OK, I will try to propose a v2 masking SIGPIPE when reporting status to the client to avoid dying before running post-receive.

Cheers,
-- 
Robin
Previous: Ævar Arnfjörð BjarmasonNext: Robin Jarry
Message 3 of 11 in “receive-pack: run post-receive before reporting status”
  1. receive-pack: run post-receive before reporting statusRobin Jarry, Nov 4, 2021
  2. Ævar Arnfjörð BjarmasonNov 6, 2021
  3. Robin JarryNov 6, 2021
  4. receive-pack: ignore SIGPIPE while reporting status to clientRobin Jarry, Nov 6, 2021
  5. Junio C HamanoNov 9, 2021
  6. Robin JarryNov 9, 2021
  7. Junio C HamanoNov 9, 2021
  8. receive-pack: interrupt pre-receive when client disconnectsRobin Jarry, Nov 10, 2021
  9. Robin JarryDec 29, 2021
  10. receive-pack: ignore SIGPIPE while reporting status to clientRobin Jarry, Nov 10, 2021
  11. Robin JarryNov 18, 2021

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.