1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-01 17:05:48 +00:00
gitea/routers/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
..
activity.go Git statistics in Activity tab (#4724) 2019-05-04 15:39:03 +03:00
attachment.go Refactor filetype is not allowed errors (#7309) 2019-07-06 22:25:05 -04:00
blame.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
branch.go improve branches list performance and fix protected branch icon when no-login (#7695) 2019-08-01 10:50:06 -04:00
commit.go Bugfix for image compare and minor improvements to image compare (#8289) 2019-10-04 15:58:54 -04:00
compare.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
download.go Add missed close in ServeBlobLFS (#8527) (#8542) 2019-10-16 20:32:15 +01:00
editor_test.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
editor.go Fix editor commit to new branch if PR disabled (#8375) 2019-10-05 10:09:19 +08:00
http.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
issue_dependency.go Added dependencies for issues (#2196) (#2531) 2018-07-17 17:23:58 -04:00
issue_label_test.go fix go vet error (#3740) 2018-03-30 07:21:27 +08:00
issue_label.go Add option to initialize repository with labels (#6061) 2019-09-08 11:28:40 +03:00
issue_lock.go Implement "conversation lock" for issue comments (#5073) 2019-02-18 22:55:04 +02:00
issue_stopwatch.go Automatically clear stopwatch on merging a PR (#4327) 2019-02-05 13:38:11 +02:00
issue_timetrack.go Handle refactor (#3339) 2018-01-10 23:34:17 +02:00
issue_watch.go Trace Logging on Permission Denied & ColorFormat (#6618) 2019-04-22 23:40:51 +03:00
issue.go Move change issue title from models to issue service package (#8456) 2019-10-11 14:44:43 +08:00
main_test.go Unit tests for wiki routers (#3022) 2017-11-30 17:52:15 +02:00
middlewares.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 2019-03-27 17:33:00 +08:00
milestone.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
pull_review.go Extract actions on new pull request from models to pulls service and move code.gitea.io/gitea/modules/pull to code.gitea.io/gitea/services/pull (#8218) 2019-09-27 08:22:36 +08:00
pull.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
release_test.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
release.go Extract actions on deletereleasebyid from models to release service (#8219) 2019-10-01 00:10:00 +08:00
repo.go Move migrating repository from frontend to backend (#6200) 2019-10-13 21:23:14 +08:00
search.go Unifies pagination template usage (#6531) (#6533) 2019-04-20 00:15:19 -04:00
setting_protected_branch.go Allow users with explicit read access to give approvals (#8382) 2019-10-08 15:18:17 -04:00
setting.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
settings_test.go Add teams to repo on collaboration page. (#8045) 2019-09-23 23:08:03 +03:00
topic.go Add API endpoint for accessing repo topics (#7963) 2019-09-03 23:46:24 +08:00
view.go Move migrating repository from frontend to backend (#6200) 2019-10-13 21:23:14 +08:00
webhook.go Change general form binding to gogs form (#8334) 2019-10-02 20:58:40 +08:00
wiki_test.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
wiki.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00