gitea/modules
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
..
auth Abort syncrhonization from LDAP source if there is some error. (#7965) 2019-08-25 02:59:21 +02:00
avatar Improve handling of non-square avatars (#7025) 2019-05-25 14:46:14 +03:00
base API error cleanup (#7186) 2019-06-12 17:07:24 -04:00
cache Add golangci (#6418) 2019-06-12 15:41:28 -04:00
context Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
cron Better logging (#6038) (#6095) 2019-04-02 08:48:31 +01:00
generate Integrate OAuth2 Provider (#5378) 2019-03-08 11:42:50 -05:00
git Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
gzip Add golangci (#6418) 2019-06-12 15:41:28 -04:00
highlight Add Rust highlighting (#7125) 2019-06-04 17:01:47 -04:00
httplib Add golangci (#6418) 2019-06-12 15:41:28 -04:00
indexer Add golangci (#6418) 2019-06-12 15:41:28 -04:00
lfs Ensure Request Body Readers are closed in LFS server (#8454) (#8459) 2019-10-11 17:11:06 +01:00
log Fix data race (#8206) 2019-09-17 12:40:28 +03:00
mailer Add golangci (#6418) 2019-06-12 15:41:28 -04:00
markup feat: highlight issue references with : (#8101) (#8404) 2019-10-06 23:41:46 -04:00
metrics Prometheus endpoint (#5256) 2018-11-04 22:20:00 -05:00
migrations Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
minwinsvc Fix Git hooks not being executed on Windows when running as a service (#1149) 2017-03-09 09:27:43 +08:00
notification Add golangci (#6418) 2019-06-12 15:41:28 -04:00
options Use vfsgen instead of go-bindata (#7080) 2019-06-03 00:43:47 +03:00
pprof Add golangci (#6418) 2019-06-12 15:41:28 -04:00
private Attempt to fix hook problem (#7856) 2019-08-14 17:43:02 +08:00
process Restore functionality for early gits (#7775) (#8476) 2019-10-13 12:40:13 +08:00
public Use vfsgen instead of go-bindata (#7080) 2019-06-03 00:43:47 +03:00
pull Allow to merge if file path contains " or \ (#8629) (#8772) 2019-11-01 13:50:49 -04:00
recaptcha Allow Recaptcha service url to be configured (#6820) 2019-05-02 16:09:39 +03:00
repofiles Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
search Global code search support (#3664) 2018-03-16 22:04:33 +08:00
secret Integrate OAuth2 Provider (#5378) 2019-03-08 11:42:50 -05:00
session Add golangci (#6418) 2019-06-12 15:41:28 -04:00
setting Make captcha and password optional for external accounts (#6606) 2019-07-06 15:48:02 -04:00
ssh Add golangci (#6418) 2019-06-12 15:41:28 -04:00
structs Be more strict with git arguments (#7715) (#7762) 2019-08-05 22:05:48 -04:00
sync Fix status table race condition (#1835) 2017-05-31 16:57:17 +08:00
templates Add golangci (#6418) 2019-06-12 15:41:28 -04:00
test Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
user Add golangci (#6418) 2019-06-12 15:41:28 -04:00
util Handle insecure and ports in go get (#7041) 2019-05-27 22:08:38 +01:00
validation Add golangci (#6418) 2019-06-12 15:41:28 -04:00