From: Patrick Steinhardt Date: Thu, 03 Sep 2026 10:03:49 GMT Subject: Re: [PATCH v6 4/4] hook: introduce the receive-report hook Message-ID: In-Reply-To: <20260903-758-introduce-hook-v6-4-6283b1fb9b1c@gmail.com> On Thu, Sep 03, 2026 at 11:28:01AM +0200, Karthik Nayak wrote: > diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c > index 9ac10465ac..edfd5cf9dc 100644 > --- a/builtin/receive-pack.c > +++ b/builtin/receive-pack.c > @@ -2535,6 +2570,13 @@ static void update_shallow_info(struct command *commands, > free(ref_status); > } > > +static void override_cmds_error(struct command *commands, const char *err) > +{ > + for (struct command *cmd = commands; cmd; cmd = cmd->next) { > + cmd->error_string = err; > + } > +} Micronit: unnecessary curly braces. Patrick