]> git.ipfire.org Git - thirdparty/git.git/commit - cache-tree.c
Use promisor_remote_get_direct() and has_promisor_remote()
authorChristian Couder <christian.couder@gmail.com>
Tue, 25 Jun 2019 13:40:31 +0000 (15:40 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 25 Jun 2019 21:05:37 +0000 (14:05 -0700)
commitb14ed5adaf87c5943433fd6b1d2cbe8c060f9264
treee7d525f2956fa56ef545ae2d8495fbe36363428e
parentfaf2abf496bb8e5a5fbf3818f3e78077b2f3e143
Use promisor_remote_get_direct() and has_promisor_remote()

Instead of using the repository_format_partial_clone global
and fetch_objects() directly, let's use has_promisor_remote()
and promisor_remote_get_direct().

This way all the configured promisor remotes will be taken
into account, not only the one specified by
extensions.partialClone.

Also when cloning or fetching using a partial clone filter,
remote.origin.promisor will be set to "true" instead of
setting extensions.partialClone to "origin". This makes it
possible to use many promisor remote just by fetching from
them.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
14 files changed:
builtin/cat-file.c
builtin/fetch.c
builtin/gc.c
builtin/index-pack.c
builtin/repack.c
cache-tree.c
connected.c
diff.c
list-objects-filter-options.c
packfile.c
sha1-file.c
t/t5601-clone.sh
t/t5616-partial-clone.sh
unpack-trees.c