t/t2025-worktree-add.sh: use the $( ... ) construct for command substitution
[gitweb.git] / decorate.c
index e339a72918a72d8a71974cf2655673ea7f192b7e..270eb2519764f1378fe53352021cd7afb3ea306a 100644 (file)
@@ -8,7 +8,7 @@
 
 static unsigned int hash_obj(const struct object *obj, unsigned int n)
 {
-       return sha1hash(get_object_hash(*obj)) % n;
+       return sha1hash(obj->oid.hash) % n;
 }
 
 static void *insert_decoration(struct decoration *n, const struct object *base, void *decoration)