1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-29 09:31:11 -05:00
forgejo/routers/api
Giteabot b76f370a3f
Fix 500 when pushing release to an empty repo (#29554) (#29564)
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>
(cherry picked from commit b84303ef6e73e2436f0c4c3985020be6bbbb5d1e)
2024-03-10 18:45:59 +07:00
..
actions Fix uploaded artifacts should be overwritten (#28726) backport v1.21 (#28832) 2024-01-31 14:18:25 +01:00
forgejo/v1 [API] Forgejo API /api/forgejo/v1 2023-11-13 12:33:48 +01:00
packages Fix incorrect relative/absolute URL usages (#29531) (#29547) 2024-03-10 18:45:59 +07:00
v1 Fix 500 when pushing release to an empty repo (#29554) (#29564) 2024-03-10 18:45:59 +07:00