From aa4343211f67bf77c46845f9f327b8a7d850b161 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 21 Jul 2004 23:59:22 +0000 Subject: [PATCH] Don't write out the protocol_version number in read_batch mode. --- compat.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/compat.c b/compat.c index 57563b0b..e90fa83a 100644 --- a/compat.c +++ b/compat.c @@ -37,13 +37,9 @@ extern int protocol_version; void setup_protocol(int f_out,int f_in) { if (remote_protocol == 0) { - if (am_server) { - remote_protocol = read_int(f_in); + if (!read_batch) write_int(f_out, protocol_version); - } else { - write_int(f_out, protocol_version); - remote_protocol = read_int(f_in); - } + remote_protocol = read_int(f_in); if (protocol_version > remote_protocol) protocol_version = remote_protocol; } -- 2.34.1