mirror of
https://github.com/go-gitea/gitea
synced 2025-01-22 07:34:26 +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>