]> git.ipfire.org Git - thirdparty/git.git/blobdiff - commit.c
fsck: check HEAD and reflog from other worktrees
[thirdparty/git.git] / commit.c
index d6f7f5e4d2d7facc20fc8f8d2fadfa25c47f68be..d0f199e12286983c3f9f23b6567dc78a2ceeaf79 100644 (file)
--- a/commit.c
+++ b/commit.c
@@ -46,7 +46,7 @@ struct commit *lookup_commit_or_die(const struct object_id *oid, const char *ref
        struct commit *c = lookup_commit_reference(the_repository, oid);
        if (!c)
                die(_("could not parse %s"), ref_name);
-       if (oidcmp(oid, &c->object.oid)) {
+       if (!oideq(oid, &c->object.oid)) {
                warning(_("%s %s is not a commit!"),
                        ref_name, oid_to_hex(oid));
        }