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>
brian m. carlson committed
May 13, 2018 at 02:24 UTC
d7a2fc82491b63a65fd38f833cabbee9803e45ca
1 file changed
+6
t/t1512-rev-parse-disambiguation.sh
+6
@@ -22,6 +22,12 @@ one tagged as v1.0.0. They all have one regular file each.
22
23
. ./test-lib.sh
24
25
+if ! test_have_prereq SHA1
26
+then
27
+ skip_all='not using SHA-1 for objects'
28
+ test_done
29
+fi
30
+
31
test_expect_success 'blob and tree' '
32
test_tick &&
33
(