gitea/routers/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
..
activity.go Git statistics in Activity tab (#4724) 2019-05-04 15:39:03 +03:00
attachment.go upload support text/plain; charset=utf8 (#7899) 2019-08-17 13:59:36 +01:00
blame.go Monitor all git commands; move blame to git package and replace git as a variable (#6864) 2019-06-26 14:15:26 -04:00
branch.go improve branches list performance and fix protected branch icon when no-login (#7695) (#7704) 2019-08-01 11:40:00 -04:00
commit.go Add golangci (#6418) 2019-06-12 15:41:28 -04:00
compare.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
download.go Add missed close in ServeBlobLFS (#8527) (#8543) 2019-10-17 00:05:23 +08:00
editor.go Fix editor commit to new branch if PR disabled (#8375) (#8401) 2019-10-07 09:28:18 +08:00
editor_test.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
http.go Handle ErrUserProhibitLogin in http git (#7586, #7591) (#7590) 2019-07-23 17:06:10 -04:00
issue.go Add reviewrs as participants (#8124) 2019-09-12 17:52:33 -04:00
issue_dependency.go Added dependencies for issues (#2196) (#2531) 2018-07-17 17:23:58 -04:00
issue_label.go Add golangci (#6418) 2019-06-12 15:41:28 -04:00
issue_label_test.go fix go vet error (#3740) 2018-03-30 07:21:27 +08: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
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 fix non existent milestone with 500 error (#7867) (#7873) 2019-08-15 09:37:59 +08:00
pull.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
pull_review.go Add comment replies (#5104) 2018-10-22 16:13:35 -04:00
release.go Unifies pagination template usage (#6531) (#6533) 2019-04-20 00:15:19 -04:00
release_test.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
repo.go Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290) 2019-05-07 09:12:51 +08:00
search.go Unifies pagination template usage (#6531) (#6533) 2019-04-20 00:15:19 -04:00
setting.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
setting_protected_branch.go Allow users with explicit read access to give approvals (#8398) 2019-10-06 16:52:25 -04:00
settings_test.go An inactive user shouldn't be able to be added as a collaborator (#4535) 2018-08-07 13:01:06 +03:00
topic.go Better logging (#6038) (#6095) 2019-04-02 08:48:31 +01:00
view.go Add golangci (#6418) 2019-06-12 15:41:28 -04:00
webhook.go Change general form binding to gogs form (#8334) (#8402) 2019-10-07 00:20:07 -04:00
wiki.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
wiki_test.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00