Skip to content

Commit 11c7f2a

Browse files
jrngitster
authored andcommitted
Revert "fetch: default to protocol version 2"
This reverts commit 684ceae. 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 <[email protected]> Reported-by: "Dixit, Ashutosh" <[email protected]> Reported-by: Jiri Slaby <[email protected]> Reported-by: Konstantin Ryabitsev <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0da63da commit 11c7f2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/config/protocol.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protocol.version::
4848
If set, clients will attempt to communicate with a server
4949
using the specified protocol version. If the server does
5050
not support it, communication falls back to version 0.
51-
If unset, the default is `2`.
51+
If unset, the default is `0`.
5252
Supported versions:
5353
+
5454
--

protocol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ enum protocol_version get_protocol_version_config(void)
3939
return env;
4040
}
4141

42-
return protocol_v2;
42+
return protocol_v0;
4343
}
4444

4545
enum protocol_version determine_protocol_version_server(void)

0 commit comments

Comments
 (0)