On Thu, Sep 03, 2026 at 11:28:01AM +0200, Karthik Nayak wrote:
quoted hunk ↗ jump to hunk
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