The git_odb_hash helper functions should not assume SHA1, and instead should be given the oid type that they're producing.