Update redirects and commit lookup code for controllers
Merged
requested to merge 20526-impossible-to-browse-a-branch-if-a-tag-exists-with-the-same-name-be-2 into master
Compare changes
Update redirect and commit lookup code for controllers
A ref is ambiguous if a ref_type is not specified and it could be interpreted as a tag or a branch. When the ref_type parameter is missing and the ref is ambiguous we should redirect with a ref_type parameter. git uses the tag when it exists so we redirect to the tag when tag and branch both exist.
This change includes a new class RequestedRef which is meant to encapsulate the logic for determining when a ref is ambiguous.
redirect_with_ref_type
feature flagThis checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #20526 (closed)