summaryrefslogtreecommitdiff
path: root/dump-cache-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'dump-cache-tree.c')
-rw-r--r--dump-cache-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dump-cache-tree.c b/dump-cache-tree.c
index 1ccaf51773..1f73f1ea7d 100644
--- a/dump-cache-tree.c
+++ b/dump-cache-tree.c
@@ -33,7 +33,7 @@ static int dump_cache_tree(struct cache_tree *it,
}
else {
dump_one(it, pfx, "");
- if (memcmp(it->sha1, ref->sha1, 20) ||
+ if (hashcmp(it->sha1, ref->sha1) ||
ref->entry_count != it->entry_count ||
ref->subtree_nr != it->subtree_nr) {
dump_one(ref, pfx, "#(ref) ");