X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=decorate.c;h=a605b1b5f4ac7844693919ca8afee3a699d1b424;hb=a35bea40b674b21fbdb98d982e41c46d014ced83;hp=de31331fa425429cf3c05078761b9bcf52fb0a45;hpb=603160b17e1884da3584dc5b424ecea4865c3d52;p=thirdparty%2Fgit.git 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)