X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=transport.c;h=e078812897eddefcd5a55a7d474dd4a7a89434fc;hb=7af01f23678dbaeed37773e37737f2ef3db1cb49;hp=99678153c13a3ca442088595273fbcd6caacda29;hpb=5104f8f1acaecbe252cd0c561582052c12278b62;p=thirdparty%2Fgit.git diff --git a/transport.c b/transport.c index 99678153c1..e078812897 100644 --- a/transport.c +++ b/transport.c @@ -273,7 +273,8 @@ static struct ref *handshake(struct transport *transport, int for_push, packet_reader_init(&reader, data->fd[0], NULL, 0, PACKET_READ_CHOMP_NEWLINE | - PACKET_READ_GENTLE_ON_EOF); + PACKET_READ_GENTLE_ON_EOF | + PACKET_READ_DIE_ON_ERR_PACKET); data->version = discover_version(&reader); switch (data->version) {