@matheusbsbs / matheus-bagliano / commits / 6c2adf80e9
Fork 0

t0410: mark test with SHA1 prerequisite

These tests try to check that we behave properly if we encounter a repository with version 0 but an extension. This is a laudable goal, but the test cannot work with SHA-256, since SHA-256 repositories always have an existing extension and are never version 0. Add a SHA1 prerequisite to these tests. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Reviewed-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed Jul 29, 2020 at 23:14 UTC 6c2adf80e9734f42f241fea1c45a5d519737f030
1 file changed +2 -2
t/t0410-partial-clone.sh
+2 -2
@@ -42,7 +42,7 @@ test_expect_success 'convert shallow clone to partial clone' '
42 test_cmp_config -C client 1 core.repositoryformatversion
43 '
44
45 -test_expect_success 'convert to partial clone with noop extension' '
45 +test_expect_success SHA1 'convert to partial clone with noop extension' '
46 rm -fr server client &&
47 test_create_repo server &&
48 test_commit -C server my_commit 1 &&
@@ -53,7 +53,7 @@ test_expect_success 'convert to partial clone with noop extension' '
53 git -C client fetch --unshallow --filter="blob:none"
54 '
55
56 -test_expect_success 'converting to partial clone fails with unrecognized extension' '
56 +test_expect_success SHA1 'converting to partial clone fails with unrecognized extension' '
57 rm -fr server client &&
58 test_create_repo server &&
59 test_commit -C server my_commit 1 &&