t5510-fetch: fix negated 'test_i18ngrep' invocation
[gitweb.git] / patch-ids.c
index f70d3966542d0d5b9b0e749bbe4b61968a30bcac..e8c150d0c92a5f796011e811b750c783d1eee9db 100644 (file)
@@ -83,7 +83,7 @@ static int init_patch_id_entry(struct patch_id *patch,
        if (commit_patch_id(commit, &ids->diffopts, &header_only_patch_id, 1, 0))
                return -1;
 
-       hashmap_entry_init(patch, sha1hash(header_only_patch_id.hash));
+       hashmap_entry_init(patch, oidhash(&header_only_patch_id));
        return 0;
 }