summaryrefslogtreecommitdiff
path: root/lib/gitlab/git/repository.rb
diff options
context:
space:
mode:
authorJohn Cai <jcai@gitlab.com>2019-05-06 16:57:44 -0700
committerJohn Cai <jcai@gitlab.com>2019-05-14 12:13:19 -0500
commitf86797b5a91791875ccd1a02806d4cab236c1ac6 (patch)
treee48b1e9bcf1e068baf84d4780e65c25b5c9a9110 /lib/gitlab/git/repository.rb
parente1aa7f5074aab8190d16a6f25121d33b99a07238 (diff)
downloadgitlab-ce-f86797b5a91791875ccd1a02806d4cab236c1ac6.tar.gz
Omit max-count for diverging_commit_counts behind feature flagjc-omit-count-diverging-commits-max
We want to optimize the query for the CountDivergingCommits rpc by removing the --max-count argument now that we have commit graphs enabled for all repositories during housekeeping. However, we want to test this first behind a feature flag.
Diffstat (limited to 'lib/gitlab/git/repository.rb')
-rw-r--r--lib/gitlab/git/repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb
index fc9bcbdcca2..455588f3c66 100644
--- a/lib/gitlab/git/repository.rb
+++ b/lib/gitlab/git/repository.rb
@@ -500,7 +500,7 @@ module Gitlab
end
# Return total diverging commits count
- def diverging_commit_count(from, to, max_count:)
+ def diverging_commit_count(from, to, max_count: 0)
wrapped_gitaly_errors do
gitaly_commit_client.diverging_commit_count(from, to, max_count: max_count)
end