You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{Repo}/src/branch/{refname}: 404 if branch {refname} doesn't exist. If exist show branch.
{Repo}/src/tag/{refname}: 404 if tag {refname} doesn't exist. If exist show tag.
Actual behavior:
{Repo}/src/branch/{refname}: 404 if branch {refname} doesn't exist. If exist show branch.
{Repo}/src/tag/{refname}: 404 if tag {refname} doesn't exist. If exist show branch (in first case, if it exist) otherwise show tag.
The reason for this is in /modules/context/repo.go, func RepoRefByType, the code first correctly determines if the branch or tag exist (depending on what is requested), but then first check if branch exist (line 610) regardless if branch or tag was requested.
[x]
):Description
When a branch and a tag has the same name, entering the URL to the tag shows the branch instead.
Example: https://try.gitea.io/merle_noir/TestName/src/tag/BranchAndTagNameSame is URL to tag but it shows the content of the branch with the same name.
The text was updated successfully, but these errors were encountered: