Tags with same name as branch break the UI
We recently stumbled upon the issue where people had to create a tag on their branch with the same name as the branch itself.
But even if it seems to work fine git-wise, the GitLab page has an issue with it when trying to look at the branch page.
So in our case it auto-selected the branch and tag always together because the URL for both are the same:
which resulted in new pushes on this branch not being displayed as the tag seems to be preferred for the view.
Steps to reproduce
Create new empty repository via website
Add empty file to master branch via website
Create new branch "testbranch" via website
touch test1; git add test1; git commit -m "Adding test1"; git push -u origin testbranch
Tag this commit via website using "testbranch" as name
touch test2; git add test2; git commit -m "Adding test2"; git push -u origin testbranch
-> Go to the gitlab page and select the testbranch-branch to see, the second push is not visible but both tag and branch are selected together.