summaryrefslogtreecommitdiff
path: root/connected.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2023-03-28 15:58:53 +0200
committerJunio C Hamano <gitster@pobox.com>2023-03-28 07:36:46 -0700
commita5183d7696db34433ebcae64bad7609d5bb3a744 (patch)
treeacc30bb6df39c051754ed03698df7de8e00122ca /connected.c
parentafe27c889429438829bc8818ed17e4960bd3ef02 (diff)
downloadgit-a5183d7696db34433ebcae64bad7609d5bb3a744.tar.gz
cocci: apply the "promisor-remote.h" part of "the_repository.pending"
Apply the part of "the_repository.pending.cocci" pertaining to "promisor-remote.h". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'connected.c')
-rw-r--r--connected.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/connected.c b/connected.c
index b90fd61790..5853fd7cbf 100644
--- a/connected.c
+++ b/connected.c
@@ -54,7 +54,7 @@ int check_connected(oid_iterate_fn fn, void *cb_data,
strbuf_release(&idx_file);
}
- if (has_promisor_remote()) {
+ if (repo_has_promisor_remote(the_repository)) {
/*
* For partial clones, we don't want to have to do a regular
* connectivity check because we have to enumerate and exclude
@@ -97,7 +97,7 @@ no_promisor_pack_found:
strvec_push(&rev_list.args,"rev-list");
strvec_push(&rev_list.args, "--objects");
strvec_push(&rev_list.args, "--stdin");
- if (has_promisor_remote())
+ if (repo_has_promisor_remote(the_repository))
strvec_push(&rev_list.args, "--exclude-promisor-objects");
if (!opt->is_deepening_fetch) {
strvec_push(&rev_list.args, "--not");