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>
This commit is contained in:

committed by
Junio C Hamano

parent
08a9dd891c
commit
717c939d8f
@ -25,6 +25,7 @@ test_description='git rerere
|
|||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
test_expect_success 'setup' '
|
test_expect_success 'setup' '
|
||||||
|
test_oid_init &&
|
||||||
cat >a1 <<-\EOF &&
|
cat >a1 <<-\EOF &&
|
||||||
Some title
|
Some title
|
||||||
==========
|
==========
|
||||||
@ -210,7 +211,7 @@ test_expect_success 'set up for garbage collection tests' '
|
|||||||
echo Hello >$rr/preimage &&
|
echo Hello >$rr/preimage &&
|
||||||
echo World >$rr/postimage &&
|
echo World >$rr/postimage &&
|
||||||
|
|
||||||
sha2=4000000000000000000000000000000000000000 &&
|
sha2=$(test_oid deadbeef) &&
|
||||||
rr2=.git/rr-cache/$sha2 &&
|
rr2=.git/rr-cache/$sha2 &&
|
||||||
mkdir $rr2 &&
|
mkdir $rr2 &&
|
||||||
echo Hello >$rr2/preimage &&
|
echo Hello >$rr2/preimage &&
|
||||||
|
Reference in New Issue
Block a user