gitea/routers/api/v1/repo
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
..
blob.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 2019-04-17 12:06:35 -04:00
branch.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
collaborators.go fix wrong email when use gitea as OAuth2 provider (#7640) (#7647) 2019-07-27 17:25:16 +03:00
commits.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
file.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
fork.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
git_hook.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
git_ref.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
hook.go fix wrong email when use gitea as OAuth2 provider (#7640) (#7647) 2019-07-27 17:25:16 +03:00
hook_test.go API endpoint for testing webhook (#3550) 2018-04-29 14:21:33 +08:00
issue.go Fix deadline on update issue or PR via API (#8699) 2019-10-28 01:36:28 +02:00
issue_comment.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
issue_label.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
issue_tracked_time.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
key.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
label.go Add missing description of label on API (#7159) 2019-06-16 20:39:52 +08:00
main_test.go API endpoint for testing webhook (#3550) 2018-04-29 14:21:33 +08:00
milestone.go Add state param to milestone listing API (#7131) 2019-06-06 08:37:45 +08:00
pull.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
release.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
release_attachment.go Fix API for edit and delete release attachment (#8290) 2019-09-26 21:16:47 +08:00
repo.go Rewrite existing repo units if setting is not included in api body (#7811) 2019-08-11 12:45:45 +03:00
repo_test.go Fixes #5960 - Adds API Endpoint for Repo Edit (#7006) 2019-05-30 11:09:05 -04:00
star.go fix wrong email when use gitea as OAuth2 provider (#7640) (#7647) 2019-07-27 17:25:16 +03:00
status.go api: fix multiple bugs with statuses endpoints (#7785) (#7807) 2019-08-09 16:18:46 +03:00
subscriber.go fix wrong email when use gitea as OAuth2 provider (#7640) (#7647) 2019-07-27 17:25:16 +03:00
tag.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
tree.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 2019-04-17 12:06:35 -04:00