mirror of
https://github.com/go-gitea/gitea.git
synced 2025-02-21 15:35:27 +01: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>