1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-05 17:54:26 +00:00
gitea/routers/api/v1/repo
zeripath 3497efac4a
Add Close() method to gogitRepository (#8901) (#8956)
Backport #8901 

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 13:54:04 +00:00
..
blob.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 2019-04-17 12:06:35 -04:00
branch.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
collaborators.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
commits.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
file.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
fork.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04: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) (#8956) 2019-11-13 13:54:04 +00:00
hook_test.go API endpoint for testing webhook (#3550) 2018-04-29 14:21:33 +08:00
hook.go fix wrong email when use gitea as OAuth2 provider (#7640) 2019-07-27 16:15:30 +03:00
issue_comment.go Move create issue comment to comments package (#8212) 2019-09-24 13:39:50 -04:00
issue_label.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
issue_tracked_time.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
issue.go Fix deadline on update issue or PR via API (#8698) 2019-10-28 01:36:59 +02:00
key.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
label.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
main_test.go API endpoint for testing webhook (#3550) 2018-04-29 14:21:33 +08:00
milestone.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
pull.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
release_attachment.go Fix API for edit and delete release attachment (#8285) 2019-09-27 10:24:06 +08:00
release.go Extract actions on deletereleasebyid from models to release service (#8219) 2019-10-01 00:10:00 +08:00
repo_test.go Fixes #5960 - Adds API Endpoint for Repo Edit (#7006) 2019-05-30 11:09:05 -04:00
repo.go Update migrated repositories' issues/comments/prs poster id if user has a github external user saved (#7751) 2019-10-14 09:10:42 +03:00
star.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
status.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
subscriber.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
tag.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
topic.go Add API endpoint for accessing repo topics (#7963) 2019-09-03 23:46:24 +08:00
tree.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 2019-04-17 12:06:35 -04:00