0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-01-02 08:34:29 +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.go Prevent upload (overwrite) of lfs locked file (#8769) 2019-11-02 15:37:05 +08:00
editor_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
http.go
issue.go Move issue milestone assign to issue service and move webhook to notification (#8780) 2019-11-02 11:33:20 +08:00
issue_dependency.go Allow cross-repository dependencies on issues (#7901) 2019-10-31 13:06:10 +08:00
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 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.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