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:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2020-04-22 13:45:41 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2020-04-22 13:51:33 +0300
commit712fcc95da19af4aff5402ce9c3756635b891034 (patch)
tree88c55f7ae624fd74d7f007a60e80d7c5851752a0
parent40eb67bc1af655a7cc056f00a2769d58a883c68f (diff)
objectpool: Update stale comment for unlinking repos
Previous to commit c02b9ad1 (UnlinkRepositoryFromObjectPool: stop removing objects/info/alternates, 2019-03-29), we removed the "objects/info/alternates" file for a repository when unlinking it from its object pool. While the commit changed it to not delete the file anymore, it forgot to update a comment that claims we still do. Update the comment to avoid confusion.
-rw-r--r--internal/git/objectpool/link.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/git/objectpool/link.go b/internal/git/objectpool/link.go
index 534847d10..ac7b526f4 100644
--- a/internal/git/objectpool/link.go
+++ b/internal/git/objectpool/link.go
@@ -163,8 +163,7 @@ func (o *ObjectPool) LinkedToRepository(repo *gitalypb.Repository) (bool, error)
return false, nil
}
-// Unlink removes the alternates file, so Git won't look there anymore
-// It removes the remote from the object pool too,
+// Unlink removes the remote from the object pool
func (o *ObjectPool) Unlink(ctx context.Context, repo *gitalypb.Repository) error {
if !o.Exists() {
return errors.New("pool does not exist")