From bfb546f86c8b779ca9d288a1b95a6dad5ad636d5 Mon Sep 17 00:00:00 2001 From: "brian m. carlson" Date: Sun, 13 May 2018 02:24:19 +0000 Subject: [PATCH] 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 --- t/t4044-diff-index-unique-abbrev.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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 <