summaryrefslogtreecommitdiff
path: root/t/t5309-pack-delta-cycles.sh
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2020-02-07 00:52:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-02-07 19:07:30 (GMT)
commita79eec220b59a061cf94b3f3842ed7c20c13e579 (patch)
tree0cff45b8965ca4b6f71a6c00c12fb51be19c44cf /t/t5309-pack-delta-cycles.sh
parent796d1383a395fb0eaf521b94d1305eb7fce3f579 (diff)
downloadgit-a79eec220b59a061cf94b3f3842ed7c20c13e579.zip
git-a79eec220b59a061cf94b3f3842ed7c20c13e579.tar.gz
git-a79eec220b59a061cf94b3f3842ed7c20c13e579.tar.bz2
t5309: make test hash independent
Use the proper pack constants defined in lib-pack.sh to make this test work with SHA-256. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5309-pack-delta-cycles.sh')
-rwxr-xr-xt/t5309-pack-delta-cycles.sh10
1 files changed, 2 insertions, 8 deletions
diff --git a/t/t5309-pack-delta-cycles.sh b/t/t5309-pack-delta-cycles.sh
index 491556da..b6b9792 100755
--- a/t/t5309-pack-delta-cycles.sh
+++ b/t/t5309-pack-delta-cycles.sh
@@ -4,15 +4,9 @@ test_description='test index-pack handling of delta cycles in packfiles'
. ./test-lib.sh
. "$TEST_DIRECTORY"/lib-pack.sh
-if ! test_have_prereq SHA1
-then
- skip_all='not using SHA-1 for objects'
- test_done
-fi
-
# Two similar-ish objects that we have computed deltas between.
-A=01d7713666f4de822776c7622c10f1b07de280dc
-B=e68fe8129b546b101aee9510c5328e7f21ca1d18
+A=$(test_oid packlib_7_0)
+B=$(test_oid packlib_7_76)
# double-check our hand-constucted packs
test_expect_success 'index-pack works with a single delta (A->B)' '