mirror of
https://github.com/go-gitea/gitea.git
synced 2025-02-25 10:59:40 +08:00

Backport #29554 by @lng2020
As title.
The former code directly used `ctx.Repo.GitRepo`, causing 500.
22b4f0c09f/routers/api/v1/repo/release.go (L241)
Co-authored-by: Nanguan Lin <nanguanlin6@gmail.com>