Skip to content
Snippets Groups Projects
Commit 712fcc95 authored by Patrick Steinhardt's avatar Patrick Steinhardt
Browse files

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.
parent 40eb67bc
No related branches found
No related tags found
Loading
Pipeline #138644903 passed with warnings
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment