Enable git protocol version 2 per default
Change-Id: Ib26607dce55a9e727fb6b1e68720f01f9a6c9f9c
diff --git a/Documentation/config-gerrit.txt b/Documentation/config-gerrit.txt
index 39ad1ca..86fa0f8 100644
--- a/Documentation/config-gerrit.txt
+++ b/Documentation/config-gerrit.txt
@@ -3873,10 +3873,6 @@
[[receive.enableProtocolV2]]receive.enableProtocolV2::
+
-[NOTE]
-Support for Git protocol version 2 is still experimental. Do not use it in
-production!
-+
Enable support for git protocol version 2.
+
When this option is enabled, clients may send upload pack using git
@@ -3888,7 +3884,7 @@
a per repository basis by setting the option in the `.git/config` file
of the repository.
+
-Defaults to false, git protocol version 2 is not enabled.
+Defaults to true, git protocol version 2 is enabled.
[[repository]]
=== Section repository
diff --git a/java/com/google/gerrit/server/git/TransferConfig.java b/java/com/google/gerrit/server/git/TransferConfig.java
index f1dcc72..e274fe7 100644
--- a/java/com/google/gerrit/server/git/TransferConfig.java
+++ b/java/com/google/gerrit/server/git/TransferConfig.java
@@ -53,7 +53,7 @@
null,
"refPermissionBackend",
RefPermissionBackend.PERMISSION_AWARE_REF_DATABASE);
- enableProtocolV2 = cfg.getBoolean("receive", "enableProtocolV2", false);
+ enableProtocolV2 = cfg.getBoolean("receive", "enableProtocolV2", true);
packConfig = new PackConfig();
packConfig.setDeltaCompress(false);