0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-01 00:35:33 +01:00
gitea/routers/repo
zeripath 722a7c902d
Add Close() method to gogitRepository (#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 07:01:19 +00:00
..
activity.go Add additional periods to activity page (#8829) 2019-11-05 00:45:48 -05:00
attachment.go
blame.go Respect LFS File Lock on UI (#8719) 2019-10-29 23:32:21 +02:00
branch.go
commit.go Fix count for commit graph last page (#8843) 2019-11-07 20:09:51 +02:00
compare.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
download.go
editor_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
editor.go Prevent upload (overwrite) of lfs locked file (#8769) 2019-11-02 15:37:05 +08:00
http.go Allow Protected Branches to Whitelist Deploy Keys (#8483) 2019-10-21 09:21:45 +01:00
issue_dependency.go Allow cross-repository dependencies on issues (#7901) 2019-10-31 13:06:10 +08:00
issue_label_test.go
issue_label.go Move issue label operations to issue service package (#8553) 2019-10-19 12:48:29 +03:00
issue_lock.go
issue_stopwatch.go
issue_timetrack.go
issue_watch.go
issue.go Move issue milestone assign to issue service and move webhook to notification (#8780) 2019-11-02 11:33:20 +08:00
lfs.go Add basic repository lfs management (#7199) 2019-10-28 18:31:55 +00:00
main_test.go
middlewares.go
milestone.go
pull_review.go Fix review webhooks (#8570) 2019-10-18 16:33:19 +08:00
pull.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
release_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
release.go
repo.go Template Repositories (#8768) 2019-11-11 23:15:29 +08:00
search.go
setting_protected_branch.go Allow Protected Branches to Whitelist Deploy Keys (#8483) 2019-10-21 09:21:45 +01:00
setting.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
settings_test.go
topic.go
view.go Respect LFS File Lock on UI (#8719) 2019-10-29 23:32:21 +02:00
webhook.go Move more webhook codes from models to webhook module (#8802) 2019-11-03 22:13:25 +00:00
wiki_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
wiki.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00