Commit 62e523f4f4db67e3792980c4b56473f86c7c5e91

Authored by Corey Hinshaw
1 parent fc72f8e3

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 106 def commit_count
107 107 Rails.cache.fetch(cache_key(:commit_count)) do
108 108 begin
109   - raw_repository.raw.commit_count
  109 + raw_repository.raw.commit_count(self.root_ref)
110 110 rescue
111 111 0
112 112 end
... ...