revision: mark non-user-given objects instead
[gitweb.git] / revision.c
index 4dbe406bed2aa13f0685d98f0932f997e88b4972..6d355b43c37ac15ca113c513750fcb2d435a2bef 100644 (file)
@@ -250,6 +250,9 @@ static struct commit *handle_commit(struct rev_info *revs,
                if (!object) {
                        if (revs->ignore_missing_links || (flags & UNINTERESTING))
                                return NULL;
+                       if (revs->exclude_promisor_objects &&
+                           is_promisor_object(&tag->tagged->oid))
+                               return NULL;
                        die("bad object %s", oid_to_hex(&tag->tagged->oid));
                }
                object->flags |= flags;