everything_local: use "quick" object existence check
[gitweb.git] / fetch-pack.c
index fbbc99c88856a773326e4bb310d30fe3021e2333..eb553cb631f9924859ec36523bc128b8c7c44250 100644 (file)
@@ -715,7 +715,8 @@ static int everything_local(struct fetch_pack_args *args,
        for (ref = *refs; ref; ref = ref->next) {
                struct object *o;
 
-               if (!has_object_file(&ref->old_oid))
+               if (!has_object_file_with_flags(&ref->old_oid,
+                                               OBJECT_INFO_QUICK))
                        continue;
 
                o = parse_object(&ref->old_oid);