Skip to content

Commit d7a2fc8

Browse files
bk2204gitster
authored andcommitted
t1512: skip test if not using SHA-1
This test relies on objects with colliding short names which are necessarily dependent on the hash used. Skip the test if we're not using SHA-1. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 0fbdb52 commit d7a2fc8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

t/t1512-rev-parse-disambiguation.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ one tagged as v1.0.0. They all have one regular file each.
2222

2323
. ./test-lib.sh
2424

25+
if ! test_have_prereq SHA1
26+
then
27+
skip_all='not using SHA-1 for objects'
28+
test_done
29+
fi
30+
2531
test_expect_success 'blob and tree' '
2632
test_tick &&
2733
(

0 commit comments

Comments
 (0)