1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-29 09:31:11 -05:00
forgejo/routers/api/v1
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
..
activitypub More refactoring of db.DefaultContext (#27083) 2023-09-15 06:13:19 +00:00
admin Forbid removing the last admin user (#28337) (#28793) 2024-01-16 14:41:11 +00:00
misc [BRANDING] Update nodeinfo branding 2023-11-13 13:58:18 +01:00
notify More db.DefaultContext refactor (#27265) (#27347) 2023-09-29 13:35:01 +00:00
org [MODERATION] User blocking 2023-11-13 13:58:02 +01:00
packages Another round of db.DefaultContext refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00
repo Fix 500 when pushing release to an empty repo (#29554) (#29564) 2024-03-10 18:45:59 +07:00
settings Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
swagger [MODERATION] User blocking 2023-11-13 13:58:02 +01:00
user Fix comment permissions (#28213) (#28216) 2023-11-26 13:56:50 +01:00
utils Fix: system webhooks API bug (#28531) (#28666) 2024-01-16 14:16:55 +00:00
api.go Require token for GET subscription endpoint (#28765) (#28768) 2024-01-16 14:39:23 +00:00