Re: [PATCH 1/1] builtin/receive-pack: avoid spinning no-op sideband async threads
On Mon, 02 Mar 2026, Junio C Hamano <gitster@pobox.com> wrote:
Show 14 quoted lines
>> @@ -1674,6 +1680,9 @@ static void run_update_post_hook(struct command *commands)
>> int sideband_async_started = 0;
>> int saved_stderr = -1;
>>
>> + if (!hook_exists(the_repository, "post-update"))
>> + return;
>> +
>> for (cmd = commands; cmd; cmd = cmd->next) {
>> if (cmd->error_string || cmd->did_not_exist)
>> continue;
>
> Ditto for "post-update".
>
> Will queue with the following change squashed in.Thank you Junio, much appreciated!