forgejo/routers
Gusted 0944b7a92a
[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 d27bcd98a41b69e313535e5e91e4272136a4bab1)
(cherry picked from commit 07916c87235f246c809d61b74c55e796eca23fc8)
(cherry picked from commit 2eedbe0c55cb7109eb722ab9172933a26e878307)
(cherry picked from commit 3810d905c6)
2023-11-13 14:06:32 +01:00
..
api [GITEA] Drop sha256-simd in favor of stdlib 2023-11-13 14:06:31 +01:00
common Clean up template locale usage (#27856) (#27857) 2023-10-31 17:35:55 +01:00
install [GITEA] rework long-term authentication 2023-11-13 14:06:31 +01:00
private [CLI] implement forgejo-cli 2023-11-13 11:52:15 +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 2023-11-13 14:06:32 +01:00
init.go [API] Forgejo API /api/forgejo/v1 2023-11-13 12:33:48 +01:00