pub fn write_tree(repo: &Repo, tree: &Tree) -> Result<Hash>
write a tree to the object store
trees are serialized as CBOR, then zstd compressed. the hash is computed over the compressed bytes.