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>
This commit is contained in:

committed by
Junio C Hamano

parent
afe27c8894
commit
a5183d7696
@ -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");
|
||||
|
Reference in New Issue
Block a user