Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-12 00:13:31 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-12 00:13:31 +0400
commit7ed935b6765ed1e9de810cfdf8ac9f6eb3fb741d (patch)
tree15fe1293cdb4f3cff8d39777ca41b1e07af14e62 /app
parent5b2193555b69f82f2efdadaf62ada1e9c3c2d77a (diff)
Use gitlab_git to get commit_count in repo. It allows get commits count for git repos with 100k+ commits
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app')
-rw-r--r--app/models/repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index f6e44a52485..00a1032b6c4 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -106,7 +106,7 @@ class Repository
def commit_count
Rails.cache.fetch(cache_key(:commit_count)) do
begin
- raw_repository.raw.commit_count(self.root_ref)
+ raw_repository.commit_count(self.root_ref)
rescue
0
end