mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-10-18 19:10:31 +08:00
The `Oid`s passed into `Commit::new` for parents and tree are never verified to be commits or a tree, respectively. Upon `write` of the commit, read the object using the ODB to determine its type. If its the incorrect object then function fails without writing to the ODB. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett