mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-01 18:14:06 +02:00
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>