diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2019-01-16 18:26:01 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-17 21:44:44 (GMT) |
commit | 99dbbfa8ddbba2b620965d026d4ec199b8837a6f (patch) | |
tree | b987c25649989bca559afe21afdc624e648cab8e /t/t5322-pack-objects-sparse.sh | |
parent | 3d036eb0d2c778941cd31b8785d5036949e8778b (diff) | |
download | git-99dbbfa8ddbba2b620965d026d4ec199b8837a6f.zip git-99dbbfa8ddbba2b620965d026d4ec199b8837a6f.tar.gz git-99dbbfa8ddbba2b620965d026d4ec199b8837a6f.tar.bz2 |
pack-objects: create GIT_TEST_PACK_SPARSE
Create a test variable GIT_TEST_PACK_SPARSE to enable the sparse
object walk algorithm by default during the test suite. Enabling
this variable ensures coverage in many interesting cases, such as
shallow clones, partial clones, and missing objects.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5322-pack-objects-sparse.sh')
-rwxr-xr-x | t/t5322-pack-objects-sparse.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t5322-pack-objects-sparse.sh b/t/t5322-pack-objects-sparse.sh index 3233faf..7124b55 100755 --- a/t/t5322-pack-objects-sparse.sh +++ b/t/t5322-pack-objects-sparse.sh @@ -36,7 +36,7 @@ test_expect_success 'setup repo' ' ' test_expect_success 'non-sparse pack-objects' ' - git pack-objects --stdout --revs <packinput.txt >nonsparse.pack && + git pack-objects --stdout --revs --no-sparse <packinput.txt >nonsparse.pack && git index-pack -o nonsparse.idx nonsparse.pack && git show-index <nonsparse.idx | awk "{print \$2}" >nonsparse_objects.txt && test_cmp expect_objects.txt nonsparse_objects.txt @@ -64,7 +64,7 @@ test_expect_success 'duplicate a folder from f3 and commit to topic1' ' ' test_expect_success 'non-sparse pack-objects' ' - git pack-objects --stdout --revs <packinput.txt >nonsparse.pack && + git pack-objects --stdout --revs --no-sparse <packinput.txt >nonsparse.pack && git index-pack -o nonsparse.idx nonsparse.pack && git show-index <nonsparse.idx | awk "{print \$2}" >nonsparse_objects.txt && comm -1 -2 required_objects.txt nonsparse_objects.txt >nonsparse_required_objects.txt && |