repack: refactor setup of pack-objects cmd
[gitweb.git] / revision.c
index 8bd2e27037d8136ec96d31ed1a41eb45a040e475..0627494378dcf6d921af59cc83d02e6a6feb0030 100644 (file)
@@ -251,6 +251,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;