0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-21 21:36:39 -05:00
forgejo/routers/web
Gusted ff91e5957a
[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)
2023-12-04 14:22:21 +01:00
..
admin Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
auth [GITEA] notifies admins on new user registration 2023-12-04 14:19:27 +01:00
devtest
events
explore Allow to set explore page default sort (#27951) 2023-11-09 10:11:45 +00:00
feed [GITEA] Add repo empty check for branch feed 2023-12-04 14:22:21 +01:00
healthcheck
misc [API] Forgejo API /api/forgejo/v1 2023-12-04 12:47:01 +01:00
org Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
repo [GITEA] Add repo empty check for branch feed 2023-12-04 14:22:21 +01:00
shared Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
user [SECURITY] Rework long-term authentication 2023-12-04 12:47:02 +01:00
base.go
githttp.go Fix http protocol auth (#27875) 2023-11-02 22:14:33 +08:00
goget.go
home.go Enhanced auth token / remember me (#27606) 2023-10-14 00:56:41 +00:00
metrics.go
nodeinfo.go
swagger_json.go
web.go [GITEA] Add repo empty check for branch feed 2023-12-04 14:22:21 +01:00
webfinger.go