Re: [PATCH v3 8/8] send-pack: gracefully close the connection for atomic push
On Tue, Dec 10, 2024 at 07:36:28PM +0800, Jiang Xin wrote:
Show 12 quoted lines
> diff --git a/send-pack.c b/send-pack.c
> index f1556dd53c..439b249c79 100644
> --- a/send-pack.c
> +++ b/send-pack.c
> @@ -631,6 +631,7 @@ int send_pack(struct send_pack_args *args,
> error("atomic push failed for ref %s. status: %d",
> ref->name, ref->status);
> ret = ERROR_SEND_PACK_BAD_REF_STATUS;
> + packet_flush(out);
> goto out;
> }
> /* else fallthrough */Nice and easy fix.
Patrick