Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-25 11:16:11 +01:00
forgejo/routers
Gusted 2eedbe0c55
[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 07916c8723)
2023-10-30 14:45:39 +01:00
..
api [v1.21] [GITEA] Drop sha256-simd in favor of stdlib 2023-10-30 14:44:21 +01:00
common Refactor system setting (#27000) (#27452) 2023-10-05 10:37:59 +00:00
install [v1.21] [GITEA] rework long-term authentication 2023-10-30 14:44:21 +01:00
private [CLI] implement forgejo-cli 2023-10-30 13:04:01 +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-10-30 14:45:39 +01:00
init.go [API] Forgejo API /api/forgejo/v1 2023-10-30 13:54:47 +01:00