]> git.ipfire.org Git - thirdparty/git.git/blobdiff - pack-write.c
convert "oidcmp() == 0" to oideq()
[thirdparty/git.git] / pack-write.c
index a9d46bc03f63b27ff85cceecb763d4e39f47898f..7d14716c404fd7ffd3f23fa4cd9d41dc3a756bdc 100644 (file)
@@ -124,7 +124,7 @@ const char *write_idx_file(const char *index_name, struct pack_idx_entry **objec
                }
                hashwrite(f, obj->oid.hash, the_hash_algo->rawsz);
                if ((opts->flags & WRITE_IDX_STRICT) &&
-                   (i && !oidcmp(&list[-2]->oid, &obj->oid)))
+                   (i && oideq(&list[-2]->oid, &obj->oid)))
                        die("The same object %s appears twice in the pack",
                            oid_to_hex(&obj->oid));
        }