From: brian m. carlson Date: Sun, 13 May 2018 02:24:19 +0000 (+0000) Subject: t4044: skip test if not using SHA-1 X-Git-Tag: v2.18.0-rc0~3^2~19 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/bfb546f86c8b779ca9d288a1b95a6dad5ad636d5 t4044: 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t4044-diff-index-unique-abbrev.sh b/t/t4044-diff-index-unique-abbrev.sh index d5ce72be63..647905e01f 100755 --- a/t/t4044-diff-index-unique-abbrev.sh +++ b/t/t4044-diff-index-unique-abbrev.sh @@ -3,6 +3,12 @@ test_description='test unique sha1 abbreviation on "index from..to" line' . ./test-lib.sh +if ! test_have_prereq SHA1 +then + skip_all='not using SHA-1 for objects' + test_done +fi + cat >expect_initial <