X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=connected.c;h=971db009b327e63cf71c82b496d70604cecf6415;hb=440bf91dfad62bb02dff3aa13837391fc8a8c4bf;hp=1ab481fed69b33b48bd95c282d2c0faff897123c;hpb=ea219657a3a3bc10058a8fc623056fa83e231d03;p=thirdparty%2Fgit.git diff --git a/connected.c b/connected.c index 1ab481fed6..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,13 +74,14 @@ 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"); argv_array_push(&rev_list.args, "--all"); } argv_array_push(&rev_list.args, "--quiet"); + argv_array_push(&rev_list.args, "--alternate-refs"); if (opt->progress) argv_array_pushf(&rev_list.args, "--progress=%s", _("Checking connectivity"));