gitea/routers/api/v1
zeripath fb5af37b3e
Add Close() method to gogitRepository (#8901) (#8958)
Backport #8901 - Adjusted slightly for 1.9

In investigating #7947 it has become clear that the storage component of go-git repositories needs closing.

This PR adds this Close function and adds the Close functions as necessary.

In TransferOwnership the ctx.Repo.GitRepo is closed if it is open to help prevent the risk of multiple open files.

Fixes #7947
2019-11-13 18:51:33 +00:00
..
admin add pagination for admin api get orgs and fix only list public orgs bug (#7742) (#7752) 2019-08-05 00:08:57 -04:00
convert Hide some user information via API if user have no enough permission (#8655) (#8658) 2019-10-24 09:01:40 +03:00
misc Add golangci (#6418) 2019-06-12 15:41:28 -04:00
org Fix team user api (#8172) (#8188) 2019-09-17 11:23:40 +08:00
repo Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
swagger Fixes #7292 - API File Contents bug (#7301) 2019-06-29 16:51:10 -04:00
user Fix 500 when getting user as unauthenticated user (#8662) 2019-10-24 16:25:30 +08:00
utils Webhook Logs show proper HTTP Method, and allow change HTTP method in form (#6953) 2019-05-15 20:01:53 +08:00
api.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00