@@ -238,7 +238,7 @@ static enum {
} write_bitmap_index;
static uint16_t write_bitmap_options = BITMAP_OPT_HASH_CACHE;
-static int exclude_promisor_objects;
+static int exclude_promisor_pack_objects;
static int use_delta_islands;
@@ -4391,7 +4391,7 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
OPT_CALLBACK_F(0, "missing", NULL, N_("action"),
N_("handling for missing objects"), PARSE_OPT_NONEG,
option_parse_missing_action),
- OPT_BOOL(0, "exclude-promisor-objects", &exclude_promisor_objects,
+ OPT_BOOL(0, "exclude-promisor-pack-objects", &exclude_promisor_pack_objects,
N_("do not pack objects in promisor packfiles")),
OPT_BOOL(0, "delta-islands", &use_delta_islands,
N_("respect islands during delta compression")),
@@ -4473,10 +4473,10 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
strvec_push(&rp, "--unpacked");
}
- if (exclude_promisor_objects) {
+ if (exclude_promisor_pack_objects) {
use_internal_rev_list = 1;
fetch_if_missing = 0;
- strvec_push(&rp, "--exclude-promisor-objects");
+ strvec_push(&rp, "--exclude-promisor-pack-objects");
}
if (unpack_unreachable || keep_unreachable || pack_loose_unreachable)
use_internal_rev_list = 1;
@@ -1289,7 +1289,7 @@ int cmd_repack(int argc, const char **argv, const char *prefix)
strvec_push(&cmd.args, "--indexed-objects");
}
if (repo_has_promisor_remote(the_repository))
- strvec_push(&cmd.args, "--exclude-promisor-objects");
+ strvec_push(&cmd.args, "--exclude-promisor-pack-objects");
if (!write_midx) {
if (write_bitmaps > 0)
strvec_push(&cmd.args, "--write-bitmap-index");
@@ -178,7 +178,8 @@ static void process_tree(struct traversal_context *ctx,
* requested. This may cause the actual filter to report
* an incomplete list of missing objects.
*/
- if (revs->exclude_promisor_objects &&
+ if ((revs->exclude_promisor_objects ||
+ revs->exclude_promisor_pack_objects) &&
is_promisor_object(&obj->oid))
return;