Skip to content
Snippets Groups Projects
Commit 62e523f4 authored by Corey Hinshaw's avatar Corey Hinshaw
Browse files

Project commit count respects default branch. Closes #299

parent fc72f8e3
No related branches found
No related tags found
Loading
Loading
@@ -106,7 +106,7 @@ class Repository
Loading
@@ -106,7 +106,7 @@ class Repository
def commit_count def commit_count
Rails.cache.fetch(cache_key(:commit_count)) do Rails.cache.fetch(cache_key(:commit_count)) do
begin begin
raw_repository.raw.commit_count raw_repository.raw.commit_count(self.root_ref)
rescue rescue
0 0
end end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment