The sixth batch for 2.18
[gitweb.git] / builtin / pack-objects.c
index 8552d7e42e12d2729ae76a6cbf316e1669f1b8f4..3df0bf0f6f7a7eec077485f7027e0c551a6d5343 100644 (file)
@@ -3241,6 +3241,8 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
                fetch_if_missing = 0;
                argv_array_push(&rp, "--exclude-promisor-objects");
        }
+       if (unpack_unreachable || keep_unreachable || pack_loose_unreachable)
+               use_internal_rev_list = 1;
 
        if (!reuse_object)
                reuse_delta = 0;