convert "hashcmp() != 0" to "!hasheq()"
[gitweb.git] / builtin / remote.c
index 7876db1c20d317e28e4a84880197c6a690bf9ef6..c171323e0eb8a782a6eb170d557df8895f8d6e8d 100644 (file)
@@ -412,7 +412,7 @@ static int get_push_ref_states(const struct ref *remote_refs,
 
                if (is_null_oid(&ref->new_oid)) {
                        info->status = PUSH_STATUS_DELETE;
-               } else if (!oidcmp(&ref->old_oid, &ref->new_oid))
+               } else if (oideq(&ref->old_oid, &ref->new_oid))
                        info->status = PUSH_STATUS_UPTODATE;
                else if (is_null_oid(&ref->old_oid))
                        info->status = PUSH_STATUS_CREATE;