diff options
| author | Christian Couder <christian.couder@gmail.com> | 2019-06-25 15:40:32 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-06-25 14:05:37 -0700 |
| commit | fa3d1b63e866d6b893934ab69da10b4516150cdc (patch) | |
| tree | 1c2d2ea0f162fb34e10a9c46f97897768e029e97 /t | |
| parent | b14ed5adaf87c5943433fd6b1d2cbe8c060f9264 (diff) | |
| download | git-fa3d1b63e866d6b893934ab69da10b4516150cdc.tar.xz | |
promisor-remote: parse remote.*.partialclonefilter
This makes it possible to specify a different partial clone
filter for each promisor remote.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
| -rwxr-xr-x | t/t0410-partial-clone.sh | 2 | ||||
| -rwxr-xr-x | t/t5601-clone.sh | 1 | ||||
| -rwxr-xr-x | t/t5616-partial-clone.sh | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/t/t0410-partial-clone.sh b/t/t0410-partial-clone.sh index 3559313bd0..3082eff2bf 100755 --- a/t/t0410-partial-clone.sh +++ b/t/t0410-partial-clone.sh @@ -26,7 +26,7 @@ promise_and_delete () { test_expect_success 'extensions.partialclone without filter' ' test_create_repo server && git clone --filter="blob:none" "file://$(pwd)/server" client && - git -C client config --unset core.partialclonefilter && + git -C client config --unset remote.origin.partialclonefilter && git -C client fetch origin ' diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh index 534d03a4d7..078cf48dd6 100755 --- a/t/t5601-clone.sh +++ b/t/t5601-clone.sh @@ -655,6 +655,7 @@ partial_clone () { # Ensure that unneeded blobs are not inadvertently fetched. test_config -C client remote.origin.promisor "false" && + git -C client config --unset remote.origin.partialclonefilter && test_must_fail git -C client cat-file -e "$HASH1" && # But this blob was fetched, because clone performs an initial checkout diff --git a/t/t5616-partial-clone.sh b/t/t5616-partial-clone.sh index 8f9a62aac0..8ae7ba9c95 100755 --- a/t/t5616-partial-clone.sh +++ b/t/t5616-partial-clone.sh @@ -43,7 +43,7 @@ test_expect_success 'do partial clone 1' ' test_cmp expect_1.oids observed.oids && test "$(git -C pc1 config --local core.repositoryformatversion)" = "1" && test "$(git -C pc1 config --local remote.origin.promisor)" = "true" && - test "$(git -C pc1 config --local core.partialclonefilter)" = "blob:none" + test "$(git -C pc1 config --local remote.origin.partialclonefilter)" = "blob:none" ' # checkout master to force dynamic object fetch of blobs at HEAD. |
