0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-09 08:00:44 -05:00
forgejo/routers/api/v1
zeripath f93522ddae
Prevent panic on looking at api "git" endpoints for empty repos (#22457) (#22458)
Backport #22457

The API endpoints for "git" can panic if they are called on an empty
repo. We can simply allow empty repos for these endpoints without worry
as they should just work.

Fix #22452

Signed-off-by: Andrew Thornton <art27@cantab.net>
2023-01-15 14:35:56 +00:00
..
activitypub Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2022-10-24 20:29:17 +01:00
admin
misc Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2022-10-24 20:29:17 +01:00
notify
org
packages
repo Add sync_on_commit option for push mirrors api (#22271) (#22292) 2022-12-31 19:46:14 +08:00
settings
swagger
user Record OAuth client type at registration (#21316) 2022-10-24 15:59:24 +08:00
utils Use complete SHA to create and query commit status (#22244) (#22257) 2022-12-28 11:03:21 +01:00
api.go Prevent panic on looking at api "git" endpoints for empty repos (#22457) (#22458) 2023-01-15 14:35:56 +00:00
auth.go
auth_windows.go