]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/remote.c
cocci: apply the "object-store.h" part of "the_repository.pending"
[thirdparty/git.git] / builtin / remote.c
index 729f6f3643add1819942facaae5175555f9c167b..a6b100dce7f3f6e599fab3116944b56b8c4303c0 100644 (file)
@@ -443,7 +443,7 @@ static int get_push_ref_states(const struct ref *remote_refs,
                        info->status = PUSH_STATUS_UPTODATE;
                else if (is_null_oid(&ref->old_oid))
                        info->status = PUSH_STATUS_CREATE;
-               else if (has_object_file(&ref->old_oid) &&
+               else if (repo_has_object_file(the_repository, &ref->old_oid) &&
                         ref_newer(&ref->new_oid, &ref->old_oid))
                        info->status = PUSH_STATUS_FASTFORWARD;
                else