forgejo/routers
Gusted f5b8c8edea
[GITEA] Add repo empty check for branch feed
- If you attempted to get a branch feed on a empty repository, it would
result in a panic as the code expects that the branch exists.
- `context.RepoRefByType` would normally already 404 if the branch
doesn't exist, however if a repository is empty, it would not do this
check.
- Fix bug where `/atom/branch/*` would return a RSS feed.

(cherry picked from commit d27bcd98a4)
(cherry picked from commit c58566403d)
(cherry picked from commit b8b3f6ab8b)
(cherry picked from commit 195520100b)
(cherry picked from commit 6e417087dd)
(cherry picked from commit ff91e5957a)
(cherry picked from commit 6626d5cc75)
(cherry picked from commit 62f8ab793b)
(cherry picked from commit e5bbf1a2d0)
2024-01-01 15:24:07 +01:00
..
api [GITEA] Drop sha256-simd in favor of stdlib 2024-01-01 15:20:56 +01:00
common Avoid cycle-redirecting user/login page (#28636) 2023-12-30 08:48:34 +00:00
install [GITEA] Add password length check on install page 2024-01-01 15:20:55 +01:00
private [CLI] implement forgejo-cli 2024-01-01 13:02:36 +01:00
utils Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
web [GITEA] Add repo empty check for branch feed 2024-01-01 15:24:07 +01:00
init.go [API] Forgejo API /api/forgejo/v1 2024-01-01 13:50:26 +01:00