@matheusbsbs / matheus-bagliano / commits / 717c939d8f
Fork 0

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>

brian m. carlson committed Dec 21, 2019 at 19:49 UTC 717c939d8fe46638283a09e09d2b913974b4096d
1 file changed +2 -1
t/t4200-rerere.sh
+2 -1
@@ -25,6 +25,7 @@ test_description='git rerere
25 . ./test-lib.sh
26
27 test_expect_success 'setup' '
28 + test_oid_init &&
29 cat >a1 <<-\EOF &&
30 Some title
31 ==========
@@ -210,7 +211,7 @@ test_expect_success 'set up for garbage collection tests' '
211 echo Hello >$rr/preimage &&
212 echo World >$rr/postimage &&
213
213 - sha2=4000000000000000000000000000000000000000 &&
214 + sha2=$(test_oid deadbeef) &&
215 rr2=.git/rr-cache/$sha2 &&
216 mkdir $rr2 &&
217 echo Hello >$rr2/preimage &&