Skip to content

Conversation

ethomson
Copy link
Member

libgit2 implicitly supports precious objects, since there's no gc command, nor even any option in our object database functionality to delete an object from the odb.

In the future, when we support deleting objects, or a gc functionality, we will need to honor the preciousObjects extension and reject those APIs when it is set. In the meantime, since users cannot use libgit2 (directly) to delete an object, we can simply add this to our allowlist.

@ethomson
Copy link
Member Author

Fixes #6873 6873

libgit2 implicitly supports precious objects, since there's no gc
command, nor even any option in our object database functionality to
delete an object from the odb.

In the future, when we support deleting objects, or a gc functionality,
we will need to honor the preciousObjects extension and reject those
APIs when it is set. In the meantime, since users cannot use libgit2
(directly) to delete an object, we can simply add this to our allowlist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant