On 2020-01-08 at 07:10:09, Jeff King wrote: > diff --git a/transport.c b/transport.c > index 83379a037d..1fdc7dac1a 100644 > --- a/transport.c > +++ b/transport.c > @@ -737,7 +737,7 @@ static int disconnect_git(struct transport *transport) > { > struct git_transport_data *data = transport->data; > if (data->conn) { > - if (data->got_remote_heads) > + if (data->got_remote_heads && !transport->stateless_rpc) > packet_flush(data->fd[1]); > close(data->fd[0]); > close(data->fd[1]); This is as simple and elegant as I'd hoped for, and as usual, it's well explained. Looks great. -- brian m. carlson: Houston, Texas, US OpenPGP: https://keybase.io/bk2204
Attachment:
signature.asc
Description: PGP signature