From: Patrick Steinhardt Date: Mon, 16 Dec 2024 08:36:28 GMT Subject: Re: [PATCH v3 8/8] send-pack: gracefully close the connection for atomic push Message-ID: In-Reply-To: <9f49278ef108f08d512ee13128ed8277e12c002d.1733830410.git.zhiyou.jx@alibaba-inc.com> On Tue, Dec 10, 2024 at 07:36:28PM +0800, Jiang Xin wrote: > 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