Replace git_oid_allocfmt with git_oid_fmt in GitRepository