diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-09-01 01:49:46 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-01 01:49:46 +0300 |
commit | 63728e481451b8e218bec4d21ce085471d90fe7a (patch) | |
tree | 6cfe1af9cac978bfd64c2f0ea14db0abc5bedd49 /t | |
parent | 096c948dabc7d13a6cc81a8ad803fd96fc1c5d15 (diff) | |
parent | 1b03df5f1e98b64b3bdc8a59c56697eaf675daca (diff) |
Merge branch 'jt/promisor-pack-fix'
Updates into a lazy/partial clone with a submodule did not work
well with transfer.fsckobjects set.
* jt/promisor-pack-fix:
fetch-pack: in partial clone, pass --promisor
Diffstat (limited to 't')
-rwxr-xr-x | t/t5616-partial-clone.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/t/t5616-partial-clone.sh b/t/t5616-partial-clone.sh index 8827c2ed18..5a01466db4 100755 --- a/t/t5616-partial-clone.sh +++ b/t/t5616-partial-clone.sh @@ -163,6 +163,22 @@ test_expect_success 'manual prefetch of missing objects' ' test_line_count = 0 observed.oids ' +test_expect_success 'partial clone with transfer.fsckobjects=1 works with submodules' ' + test_create_repo submodule && + test_commit -C submodule mycommit && + + test_create_repo src_with_sub && + test_config -C src_with_sub uploadpack.allowfilter 1 && + test_config -C src_with_sub uploadpack.allowanysha1inwant 1 && + + git -C src_with_sub submodule add "file://$(pwd)/submodule" mysub && + git -C src_with_sub commit -m "commit with submodule" && + + git -c transfer.fsckobjects=1 \ + clone --filter="blob:none" "file://$(pwd)/src_with_sub" dst && + test_when_finished rm -rf dst +' + test_expect_success 'partial clone with transfer.fsckobjects=1 uses index-pack --fsck-objects' ' git init src && test_commit -C src x && |