X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=connected.c;h=971db009b327e63cf71c82b496d70604cecf6415;hb=0253e126a271f10dc1f1fc630193a4026ec8a7ee;hp=cd9b324afa5a33be7eced6a420061905d52c211f;hpb=0bdaec1d3db90d69041531311fb34fa09639589b;p=thirdparty%2Fgit.git diff --git a/connected.c b/connected.c index cd9b324afa..971db009b3 100644 --- a/connected.c +++ b/connected.c @@ -5,6 +5,7 @@ #include "connected.h" #include "transport.h" #include "packfile.h" +#include "promisor-remote.h" /* * If we feed all the commits we want to verify to this command @@ -73,7 +74,7 @@ int check_connected(oid_iterate_fn fn, void *cb_data, argv_array_push(&rev_list.args,"rev-list"); argv_array_push(&rev_list.args, "--objects"); argv_array_push(&rev_list.args, "--stdin"); - if (repository_format_partial_clone) + if (has_promisor_remote()) argv_array_push(&rev_list.args, "--exclude-promisor-objects"); if (!opt->is_deepening_fetch) { argv_array_push(&rev_list.args, "--not");