gitea/routers/api/v1
zeripath cc1f8cbe96
Prevent panic on looking at api "git" endpoints for empty repos (#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 08:33:25 -06:00
..
activitypub Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
admin Move `convert` package to services (#22264) 2022-12-29 10:57:15 +08:00
misc Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
notify Move `convert` package to services (#22264) 2022-12-29 10:57:15 +08:00
org Restructure `webhook` module (#22256) 2023-01-01 23:23:15 +08:00
packages Move `convert` package to services (#22264) 2022-12-29 10:57:15 +08:00
repo Use context parameter in models/git (#22367) 2023-01-09 11:50:54 +08:00
settings Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
swagger Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
user Move `convert` package to services (#22264) 2022-12-29 10:57:15 +08:00
utils Improve utils of slices (#22379) 2023-01-11 13:31:16 +08:00
api.go Prevent panic on looking at api "git" endpoints for empty repos (#22457) 2023-01-15 08:33:25 -06:00
auth.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
auth_windows.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00