summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 b7239236aea..f6e44a52485 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
+ raw_repository.raw.commit_count(self.root_ref)
rescue
0
end