1
0
mirror of https://github.com/go-gitea/gitea synced 2024-11-14 01:35:54 +01:00
gitea/modules/context
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
..
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) (#8958) 2019-11-13 18:51:33 +00:00
auth.go API OTP Context (#6674) 2019-04-19 11:59:26 +03:00
context.go Fix Go 1.13 private repository go get issue (#8100) 2019-09-06 09:59:03 -04:00
org.go Use AppSubUrl for more redirections (#8647) (#8652) 2019-10-23 18:26:54 -04:00
pagination.go Add golangci (#6418) 2019-06-12 15:41:28 -04:00
panic.go Better logging (#6038) (#6095) 2019-04-02 08:48:31 +01:00
permission.go Trace Logging on Permission Denied & ColorFormat (#6618) 2019-04-22 23:40:51 +03:00
repo.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00