Project page commit count always uses 'master'
Created by: f0k
On the project page, the commit count is a hyperlink to the project's default branch, but it always displays the commit count of 'master'.
I don't speak Ruby, but I think app/models/repository.rb would just need to pass the default branch name to raw_repository.raw.commit_count
(which in turn is defined in gitlab-grit's lib/grit/repo.rb, which falls back to start = 'master'
if nothing else is given).
I'm using gitlab 6.1, but looking at the source, the problem is the same in gitlab 6.2.