convert "hashcmp() != 0" to "!hasheq()"
[gitweb.git] / builtin / receive-pack.c
index c17ce94e12ee34c5b822b0e09fcd6d7264e759ad..5bb163d4d2a1de3aebe4951fdc7a731b6c999acb 100644 (file)
@@ -1222,8 +1222,8 @@ static void check_aliased_update(struct command *cmd, struct string_list *list)
 
        dst_cmd = (struct command *) item->util;
 
-       if (!oidcmp(&cmd->old_oid, &dst_cmd->old_oid) &&
-           !oidcmp(&cmd->new_oid, &dst_cmd->new_oid))
+       if (oideq(&cmd->old_oid, &dst_cmd->old_oid) &&
+           oideq(&cmd->new_oid, &dst_cmd->new_oid))
                return;
 
        dst_cmd->skip_update = 1;