mirror of
https://github.com/go-gitea/gitea.git
synced 2025-03-13 01:45:43 +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>