X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fgit.git;a=blobdiff_plain;f=decorate.c;h=a605b1b5f4ac7844693919ca8afee3a699d1b424;hp=de31331fa425429cf3c05078761b9bcf52fb0a45;hb=7cb8c929d76c12750fdece2e5da75d207938d3b9;hpb=68f1c0d102f4422c4fa59f597335ddef7602d27e diff --git a/decorate.c b/decorate.c index de31331fa4..a605b1b5f4 100644 --- a/decorate.c +++ b/decorate.c @@ -8,7 +8,7 @@ static unsigned int hash_obj(const struct object *obj, unsigned int n) { - return sha1hash(obj->oid.hash) % n; + return oidhash(&obj->oid) % n; } static void *insert_decoration(struct decoration *n, const struct object *base, void *decoration)