t/t2025-worktree-add.sh: use the $( ... ) construct for command substitution
[gitweb.git] / patch-ids.c
index 7bdaa42460ef80787788ea775dc96869acac9a39..b7b3e5a1a700d4d2e1656c605697c2cf6345b8a6 100644 (file)
@@ -8,10 +8,10 @@ static int commit_patch_id(struct commit *commit, struct diff_options *options,
                    unsigned char *sha1)
 {
        if (commit->parents)
-               diff_tree_sha1(get_object_hash(commit->parents->item->object),
-                              get_object_hash(commit->object), "", options);
+               diff_tree_sha1(commit->parents->item->object.oid.hash,
+                              commit->object.oid.hash, "", options);
        else
-               diff_root_tree_sha1(get_object_hash(commit->object), "", options);
+               diff_root_tree_sha1(commit->object.oid.hash, "", options);
        diffcore_std(options);
        return diff_flush_patch_id(options, sha1);
 }