Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #5388

Closed
Open
Created Oct 21, 2013 by Administrator@rootOwner

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.

Assignee
Assign to
Time tracking