Commit 62e523f4 authored by Corey Hinshaw's avatar Corey Hinshaw

Project commit count respects default branch. Closes #299

parent fc72f8e3
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment