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 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
5 years ago
..
blob.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 6 years ago
branch.go Use gitea forked macaron (#7933) 6 years ago
collaborators.go Use gitea forked macaron (#7933) 6 years ago
commits.go Add Close() method to gogitRepository (#8901) (#8956) 5 years ago
file.go Add Close() method to gogitRepository (#8901) (#8956) 5 years ago
fork.go Use gitea forked macaron (#7933) 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) (#8956) 5 years ago
hook.go fix wrong email when use gitea as OAuth2 provider (#7640) 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 (#8698) 5 years ago
issue_comment.go Move create issue comment to comments package (#8212) 6 years ago
issue_label.go Use gitea forked macaron (#7933) 6 years ago
issue_tracked_time.go Use gitea forked macaron (#7933) 6 years ago
key.go Use gitea forked macaron (#7933) 6 years ago
label.go Use gitea forked macaron (#7933) 6 years ago
main_test.go API endpoint for testing webhook (#3550) 7 years ago
milestone.go Display ui time with customize time location (#7792) 6 years ago
pull.go Add Close() method to gogitRepository (#8901) (#8956) 5 years ago
release.go Extract actions on deletereleasebyid from models to release service (#8219) 5 years ago
release_attachment.go Fix API for edit and delete release attachment (#8285) 6 years ago
repo.go Update migrated repositories' issues/comments/prs poster id if user has a github external user saved (#7751) 5 years ago
repo_test.go Fixes #5960 - Adds API Endpoint for Repo Edit (#7006) 6 years ago
star.go Use gitea forked macaron (#7933) 6 years ago
status.go Use gitea forked macaron (#7933) 6 years ago
subscriber.go Use gitea forked macaron (#7933) 6 years ago
tag.go Add Close() method to gogitRepository (#8901) (#8956) 5 years ago
topic.go Add API endpoint for accessing repo topics (#7963) 6 years ago
tree.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 6 years ago