0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 23:04:22 +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
attachment.go
blame.go
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.go
editor_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
http.go
issue.go
issue_dependency.go
issue_label.go
issue_label_test.go
issue_lock.go
issue_stopwatch.go
issue_timetrack.go
issue_watch.go
lfs.go
main_test.go
middlewares.go
milestone.go
pull.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
pull_review.go
release.go
release_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
repo.go Template Repositories (#8768) 2019-11-11 23:15:29 +08:00
search.go
setting.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
setting_protected_branch.go
settings_test.go
topic.go
view.go
webhook.go
wiki.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
wiki_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00