summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2019-12-21 19:49:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-01-15 22:06:19 (GMT)
commit717c939d8fe46638283a09e09d2b913974b4096d (patch)
tree0df5234cb68336b40749e36cb334d7814ef65f1c
parent08a9dd891c5808c2ab6e8b7fc5812e1f0cea1354 (diff)
downloadgit-717c939d8fe46638283a09e09d2b913974b4096d.zip
git-717c939d8fe46638283a09e09d2b913974b4096d.tar.gz
git-717c939d8fe46638283a09e09d2b913974b4096d.tar.bz2
t4200: make hash size independent
Instead of hard-coding a fixed length example object ID in the test, look one up using the translation tables. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t4200-rerere.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t4200-rerere.sh b/t/t4200-rerere.sh
index 55b7750..831d424 100755
--- a/t/t4200-rerere.sh
+++ b/t/t4200-rerere.sh
@@ -25,6 +25,7 @@ test_description='git rerere
. ./test-lib.sh
test_expect_success 'setup' '
+ test_oid_init &&
cat >a1 <<-\EOF &&
Some title
==========
@@ -210,7 +211,7 @@ test_expect_success 'set up for garbage collection tests' '
echo Hello >$rr/preimage &&
echo World >$rr/postimage &&
- sha2=4000000000000000000000000000000000000000 &&
+ sha2=$(test_oid deadbeef) &&
rr2=.git/rr-cache/$sha2 &&
mkdir $rr2 &&
echo Hello >$rr2/preimage &&