1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-14 14:14:25 +00:00
gitea/routers
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
..
admin Shadow the password on cache and session config on admin panel (#7300) 2019-06-27 00:12:38 +08:00
api/v1 Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
dev Make time diff translatable (#2057) 2017-06-28 13:43:28 +08:00
org backport of #7385 - add missing template variable on organisation settings (#7386) 2019-07-08 21:03:44 +03:00
private Attempt to fix hook problem (#7856) 2019-08-14 17:43:02 +08:00
repo Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
routes Change general form binding to gogs form (#8334) (#8402) 2019-10-07 00:20:07 -04:00
user Revert "[Backport] Fix issues/pr list broken when there are man… (#8425) 2019-10-08 18:12:41 +02:00
utils Slack webhook channel name cannot be empty or just contain an hashtag (#4786) 2018-09-10 10:31:08 -04:00
home.go Use AppSubUrl for more redirections (#8647) (#8652) 2019-10-23 18:26:54 -04:00
init.go Only check and config git on web subcommand but not others (#7236) 2019-06-19 19:53:37 +03:00
install.go Install page - Handle invalid administrator username better (#7060) 2019-05-28 07:18:40 +01:00
metrics.go routers: do not leak secrets via timing side channel (#7364) 2019-07-06 13:03:13 -04:00
swagger_json.go Swagger.v1.json template (#3572) 2018-07-28 03:19:01 +03:00