mirror of
https://github.com/go-gitea/gitea
synced 2025-01-10 17:54:27 +00:00
81ea4f95a0
GitHub allows releases with target commitish `refs/heads/BRANCH`, which then causes issues in Gitea after migration. This fix handles cases that a branch already has a prefix. Fixes #20317 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>