From 11c7f2a30b9dadcccc7bde66a34e0cb0cb5cf52c Mon Sep 17 00:00:00 2001 From: Jonathan Nieder Date: Wed, 22 Apr 2020 08:50:47 -0700 Subject: Revert "fetch: default to protocol version 2" This reverts commit 684ceae32dae726c6a5c693b257b156926aba8b7. Users fetching from linux-next and other kernel remotes are reporting that the limited ref advertisement causes negotiation to reach MAX_IN_VAIN, resulting in too-large fetches. Reported-by: Lubomir Rintel Reported-by: "Dixit, Ashutosh" Reported-by: Jiri Slaby Reported-by: Konstantin Ryabitsev Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocol.c') diff --git a/protocol.c b/protocol.c index 803bef5c87..d390391eba 100644 --- a/protocol.c +++ b/protocol.c @@ -39,7 +39,7 @@ enum protocol_version get_protocol_version_config(void) return env; } - return protocol_v2; + return protocol_v0; } enum protocol_version determine_protocol_version_server(void) -- cgit v1.2.3