1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-17 23:54:25 +00:00
gitea/modules/context
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
..
api_org.go Golint fixed for modules/context 2016-11-25 14:53:59 +08:00
api_test.go fix API link header (#7298) 2019-06-26 16:51:32 +08:00
api.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
auth.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
context.go Fix Go 1.13 private repository go get issue (#8112) 2019-09-06 21:44:59 +08:00
org.go Use AppSubUrl for more redirections (#8647) (#8651) 2019-10-23 18:27:10 -04:00
pagination.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
panic.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
permission.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
repo.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00