summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-05-23 14:38:24 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-05-23 14:38:24 +0900
commit5a97e7be8846727597be322bf04541a2c61a2c81 (patch)
treeb5ef40f1cd93fec390a9333358370916fe9a57b9 /builtin
parentMerge branch 'nd/completion-aliasfiletype-typofix' (diff)
parentpack-objects: validation and documentation about unreachable options (diff)
downloadtgif-5a97e7be8846727597be322bf04541a2c61a2c81.tar.xz
Merge branch 'nd/pack-unreachable-objects-doc'
Doc update. * nd/pack-unreachable-objects-doc: pack-objects: validation and documentation about unreachable options
Diffstat (limited to 'builtin')
-rw-r--r--builtin/pack-objects.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index 8552d7e42e..3df0bf0f6f 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -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;