Naming a tag `master` causes the main view to display that tag instead of HEAD on branch master
If you tag a commit and call the tag
master the main view at
/path-to/repo-name/tree/master will display the tag, instead of the HEAD of the master branch.
Have not tested with other branch/tag names. Have only tested on self hosted Gitlab EE
GitLab 10.1.2-ee GitLab Shell 5.9.3 GitLab Workhorse v3.2.0 GitLab API v4 Gitaly 0.43.1
Steps to reproduce
- Create a tag called master, pointing to a previous commit
- Navigate to the master branch in the UI
What is the current bug behavior?
master is shown
What is the expected correct behavior?
Maybe show the HEAD of the master branch, seeing as tags have their own paths already