radicle-dev / radicle-git

Everything Radicle growing around Git
Other
41 stars 5 forks source link

git-commit: ensure parents are commits #121

Closed FintanH closed 10 months ago

FintanH commented 1 year ago

The write of a Commit does not ensure that the parents are git commits. It will write this Commit to the ODB and cause issues down the line.

Instead, we should check that each parent points to a commit -- doing so in as cheap a way as possible, if any of them are not then we should reject the write.