summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-04-28 15:50:11 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-04-28 15:50:11 -0700
commite896a286df44d9d0ae9a81bf172236dd521f5c39 (patch)
tree31283928337af11058462d77f338667fbfd60615
parentMerge branch 'jc/gnu-hurd-lets-fread-read-dirs' (diff)
parentRevert "fetch: default to protocol version 2" (diff)
downloadtgif-e896a286df44d9d0ae9a81bf172236dd521f5c39.tar.xz
Merge branch 'jn/demote-proto2-from-default'
Those fetching over protocol v2 from linux-next and other kernel repositories are reporting that v2 often fetches way too much than needed. * jn/demote-proto2-from-default: Revert "fetch: default to protocol version 2"
-rw-r--r--Documentation/config/protocol.txt2
-rw-r--r--protocol.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/config/protocol.txt b/Documentation/config/protocol.txt
index 756591d77b..0b40141613 100644
--- a/Documentation/config/protocol.txt
+++ b/Documentation/config/protocol.txt
@@ -48,7 +48,7 @@ protocol.version::
If set, clients will attempt to communicate with a server
using the specified protocol version. If the server does
not support it, communication falls back to version 0.
- If unset, the default is `2`.
+ If unset, the default is `0`.
Supported versions:
+
--
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)