summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-11-13 13:54:04 +0000
committerGitHub <noreply@github.com>2019-11-13 13:54:04 +0000
commit3497efac4ad74e766da6a6eaaca8dddec409040a (patch)
tree72450c516d434d193c18fdf05cc86c8cb5f63fd1 /docs
parent43fc99a7ed67152ff95af7c5ae3a7d7b131d567e (diff)
downloadgitea-3497efac4ad74e766da6a6eaaca8dddec409040a.tar.gz
gitea-3497efac4ad74e766da6a6eaaca8dddec409040a.zip
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
Diffstat (limited to 'docs')
-rw-r--r--docs/content/doc/advanced/migrations.en-us.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/content/doc/advanced/migrations.en-us.md b/docs/content/doc/advanced/migrations.en-us.md
index 2511f7af89..0d9d8b49a7 100644
--- a/docs/content/doc/advanced/migrations.en-us.md
+++ b/docs/content/doc/advanced/migrations.en-us.md
@@ -68,6 +68,7 @@ type Uploader interface {
CreateComment(issueNumber int64, comment *Comment) error
CreatePullRequest(pr *PullRequest) error
Rollback() error
+ Close()
}
-``` \ No newline at end of file
+```