pub fn check_object_format(ours: Kind, theirs: Option<&str>) -> Result<()>Expand description
Check a peer’s object-format against the repository’s actual hash kind.
The whole point of object-format negotiation: answering sha1 to a sha256 repository does not
fail, it returns an empty response, so the mismatch has to be caught here
and turned into an error.