Merge branch 'jt/avoid-ls-refs'
[gitweb.git] / pack-objects.c
index 7f7b7dddf6955b2f791e2d97cd90381e5edfd339..7e624c30ebd7f344d711b608b29b2d48d21a1ba0 100644 (file)
@@ -16,7 +16,7 @@ static uint32_t locate_object_entry_hash(struct packing_data *pdata,
        while (pdata->index[i] > 0) {
                uint32_t pos = pdata->index[i] - 1;
 
-               if (!hashcmp(sha1, pdata->objects[pos].idx.oid.hash)) {
+               if (hasheq(sha1, pdata->objects[pos].idx.oid.hash)) {
                        *found = 1;
                        return i;
                }