You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/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>
2 years ago
..
activitypub Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
admin Move some files into models' sub packages (#20262) 3 years ago
misc Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
notify Move some files into models' sub packages (#20262) 3 years ago
org [API] teamSearch show teams with no members if user is admin (#21204) 3 years ago
packages Add support for Vagrant packages (#20930) 3 years ago
repo Add `sync_on_commit` option for push mirrors api (#22271) (#22292) 2 years ago
settings Make mirror feature more configurable (#16957) 4 years ago
swagger Add API endpoint to get changed files of a PR (#21177) 2 years ago
user Record OAuth client type at registration (#21316) 2 years ago
utils Use complete SHA to create and query commit status (#22244) (#22257) 2 years ago
api.go Prevent panic on looking at api "git" endpoints for empty repos (#22457) (#22458) 2 years ago
auth.go Remove legacy `+build:` constraint (#19582) 3 years ago
auth_windows.go Let web and API routes have different auth methods group (#19168) 3 years ago