Merge branch 'nd/format-patch-stat-width' into next
[gitweb.git] / fetch-pack.c
index 773453c095666a40327447722b6ec66cd5e266a9..8253d746e0c40492e05360fe6f27bfa85bb39fbc 100644 (file)
@@ -725,7 +725,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);