list-objects: always parse trees gently
[gitweb.git] / list-objects.c
index ccc529e5e3e690cb9f5815e27d47cff3f7e9e7bf..f9b51db7a72819b47e65510df956dd201adf0cb0 100644 (file)
@@ -143,8 +143,6 @@ static void process_tree(struct traversal_context *ctx,
        struct rev_info *revs = ctx->revs;
        int baselen = base->len;
        enum list_objects_filter_result r = LOFR_MARK_SEEN | LOFR_DO_SHOW;
-       int gently = revs->ignore_missing_links ||
-                    revs->exclude_promisor_objects;
 
        if (!revs->tree_objects)
                return;
@@ -152,7 +150,7 @@ static void process_tree(struct traversal_context *ctx,
                die("bad tree object");
        if (obj->flags & (UNINTERESTING | SEEN))
                return;
-       if (parse_tree_gently(tree, gently) < 0) {
+       if (parse_tree_gently(tree, 1) < 0) {
                if (revs->ignore_missing_links)
                        return;