From 96738bbd00671bb971255bbed8d4e1c27cfd7660 Mon Sep 17 00:00:00 2001 From: zeripath Date: Wed, 13 Nov 2019 07:01:19 +0000 Subject: [PATCH] Add Close() method to gogitRepository (#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 --- doc/advanced/migrations.en-us.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/advanced/migrations.en-us.md b/doc/advanced/migrations.en-us.md index 2511f7af..0d9d8b49 100644 --- a/doc/advanced/migrations.en-us.md +++ b/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 +```