From e7e56bde6257ee1dd8e918e09e9c3a07893a580e Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 9 Dec 2020 15:51:10 -0800 Subject: [PATCH] Enable git protocol v2 on gerrit This is enabled on review-test if you want to test it out. It is intended to speed up fetches and clones and such as you don't have to list and interact with all of the gerrit change refs to do those common operations. Change-Id: I65b430548a2805cd05dc4cdbcf9354a9c18faadc --- playbooks/roles/gerrit/templates/jgit.config.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playbooks/roles/gerrit/templates/jgit.config.j2 b/playbooks/roles/gerrit/templates/jgit.config.j2 index a2bc4e4c02..7409637592 100644 --- a/playbooks/roles/gerrit/templates/jgit.config.j2 +++ b/playbooks/roles/gerrit/templates/jgit.config.j2 @@ -2,5 +2,7 @@ packedGitOpenFiles = {{ gerrit_packed_git_open_files }} packedGitLimit = 400m packedGitWindowSize = 16k +[protocol] + version = 2 [receive] autogc = false