]> source.dussan.org Git - gitea.git/commit
Fix 500 when pushing release to an empty repo (#29554) (#29564)
authorGiteabot <teabot@gitea.io>
Sun, 3 Mar 2024 17:10:22 +0000 (01:10 +0800)
committerGitHub <noreply@github.com>
Sun, 3 Mar 2024 17:10:22 +0000 (17:10 +0000)
commitb84303ef6e73e2436f0c4c3985020be6bbbb5d1e
tree2dbfba269a793aff4c359d7df6a059b892d9190a
parent2b059f493e46b8b0fb52492623e36a8375cb5fbb
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.

https://github.com/go-gitea/gitea/blob/22b4f0c09f1de5e581929bd10f39833d30d2c482/routers/api/v1/repo/release.go#L241

Co-authored-by: Nanguan Lin <nanguanlin6@gmail.com>
routers/api/v1/repo/release.go