diff --git a/app/models/repository.rb b/app/models/repository.rb index b7239236aea1b6787bfb1ee986569c9b778b6476..f6e44a524857d83e56868e3e2d29bfdadd7b811e 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