Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarthik Nayak <knayak@gitlab.com>2023-01-03 17:59:27 +0300
committerKarthik Nayak <knayak@gitlab.com>2023-01-09 18:35:50 +0300
commit09a9d59ea52e76592acb1c011c3104b2075cdec6 (patch)
treee45c19c1bf4b2f2566afc57cfb95800d4cf2de1e
parent47eb4b80511c3d6001807f617b22ca3aa4de8b58 (diff)
quarantine: Clarify documentation around cleanup
-rw-r--r--internal/git/quarantine/quarantine.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/git/quarantine/quarantine.go b/internal/git/quarantine/quarantine.go
index fa8d7e617..41afb8e1f 100644
--- a/internal/git/quarantine/quarantine.go
+++ b/internal/git/quarantine/quarantine.go
@@ -29,8 +29,8 @@ type Dir struct {
locator storage.Locator
}
-// New creates a new quarantine directory and returns both the directory as well as its cleanup
-// function.
+// New creates a new quarantine directory and returns the directory. The repository is cleaned
+// up when the user invokes the Migrate() functionality on the Dir.
func New(ctx context.Context, repo *gitalypb.Repository, locator storage.Locator) (*Dir, error) {
repoPath, err := locator.GetPath(repo)
if err != nil {