summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-05-13 02:24:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-14 02:02:01 (GMT)
commitbfb546f86c8b779ca9d288a1b95a6dad5ad636d5 (patch)
treefb4ec629451cd51d9b0a82e955ca8a8bc1eb502d
parentd7a2fc82491b63a65fd38f833cabbee9803e45ca (diff)
downloadgit-bfb546f86c8b779ca9d288a1b95a6dad5ad636d5.zip
git-bfb546f86c8b779ca9d288a1b95a6dad5ad636d5.tar.gz
git-bfb546f86c8b779ca9d288a1b95a6dad5ad636d5.tar.bz2
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 <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t4044-diff-index-unique-abbrev.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t4044-diff-index-unique-abbrev.sh b/t/t4044-diff-index-unique-abbrev.sh
index d5ce72b..647905e 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 <<EOF
100644 blob 51d2738463ea4ca66f8691c91e33ce64b7d41bb1 foo
EOF