describe: fix accidental oid/hash type-punning
[gitweb.git] / builtin / describe.c
index 1409cedce2fb08dc24b57db9e3a3591c3760d8af..0a5cde00a20bae2997dfe2e9b26cc10190d3d186 100644 (file)
@@ -76,7 +76,7 @@ static int commit_name_neq(const void *unused_cmp_data,
 
 static inline struct commit_name *find_commit_name(const struct object_id *peeled)
 {
-       return hashmap_get_from_hash(&names, sha1hash(peeled->hash), peeled->hash);
+       return hashmap_get_from_hash(&names, sha1hash(peeled->hash), peeled);
 }
 
 static int replace_name(struct commit_name *e,