Changing the default branch does not update the Commit (#) button on the project page

Summary

If you change the default branch, the commit button on the project page will still show the commit count of initial default branch.

Steps to reproduce

  1. Create repository with master branch
  2. Create one commit in master branch
  3. Branch master into develop
  4. Add 1 or more commits to develop
  5. Switch default branch to develop
  6. Navigate to project page
  7. See the commit count for the master branch.

Expected behavior

The commit count of the current default branch.

Actual behavior

The commit count of the initial default branch.

Relevant logs and/or screenshots

Screen_Shot_2017-01-01_at_14.04.56

Edited Dec 06, 2019 by Michelle Gill
Assignee Loading
Time tracking Loading