Commit 62e523f4f4db67e3792980c4b56473f86c7c5e91
1 parent
fc72f8e3
Exists in
spb-stable
and in
2 other branches
Project commit count respects default branch. Closes #299
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/repository.rb
| @@ -106,7 +106,7 @@ class Repository | @@ -106,7 +106,7 @@ class Repository | ||
| 106 | def commit_count | 106 | def commit_count |
| 107 | Rails.cache.fetch(cache_key(:commit_count)) do | 107 | Rails.cache.fetch(cache_key(:commit_count)) do |
| 108 | begin | 108 | begin |
| 109 | - raw_repository.raw.commit_count | 109 | + raw_repository.raw.commit_count(self.root_ref) |
| 110 | rescue | 110 | rescue |
| 111 | 0 | 111 | 0 |
| 112 | end | 112 | end |