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/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
5 years ago
..
blob.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 6 years ago
branch.go Move sdk structs to modules/structs (#6905) 6 years ago
collaborators.go fix wrong email when use gitea as OAuth2 provider (#7640) (#7647) 6 years ago
commits.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
file.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
fork.go Move sdk structs to modules/structs (#6905) 6 years ago
git_hook.go Move sdk structs to modules/structs (#6905) 6 years ago
git_ref.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
hook.go fix wrong email when use gitea as OAuth2 provider (#7640) (#7647) 6 years ago
hook_test.go API endpoint for testing webhook (#3550) 7 years ago
issue.go Fix deadline on update issue or PR via API (#8699) 5 years ago
issue_comment.go Move sdk structs to modules/structs (#6905) 6 years ago
issue_label.go Move sdk structs to modules/structs (#6905) 6 years ago
issue_tracked_time.go Move sdk structs to modules/structs (#6905) 6 years ago
key.go Move sdk structs to modules/structs (#6905) 6 years ago
label.go Add missing description of label on API (#7159) 6 years ago
main_test.go API endpoint for testing webhook (#3550) 7 years ago
milestone.go Add state param to milestone listing API (#7131) 6 years ago
pull.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
release.go Move sdk structs to modules/structs (#6905) 6 years ago
release_attachment.go Fix API for edit and delete release attachment (#8290) 5 years ago
repo.go Rewrite existing repo units if setting is not included in api body (#7811) 6 years ago
repo_test.go Fixes #5960 - Adds API Endpoint for Repo Edit (#7006) 6 years ago
star.go fix wrong email when use gitea as OAuth2 provider (#7640) (#7647) 6 years ago
status.go api: fix multiple bugs with statuses endpoints (#7785) (#7807) 6 years ago
subscriber.go fix wrong email when use gitea as OAuth2 provider (#7640) (#7647) 6 years ago
tag.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
tree.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 6 years ago