t1450: make hash size independent
commit8de6b383c15a527c222688161156eb5c5acfecc4
authorbrian m. carlson <sandals@crustytoothpaste.net>
Fri, 28 Jun 2019 22:59:21 +0000 (28 22:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jul 2019 20:28:18 +0000 (1 13:28 -0700)
treed44b839eb9c5e9e80e6f70130057fce4d0b92f88
parentff4cb42e77a020877fdb9866d3b03e9669cc6325
t1450: make hash size independent

Replace several hard-coded full and partial object IDs with variables or
computed values.  Create junk data to stuff inside an invalid tree that
can be either 20 or 32 bytes long.  Compute a binary all-zeros object ID
instead of hard-coding a 20-byte length.

Additionally, compute various object IDs by using test_oid and
$EMPTY_BLOB so that this test works with multiple hash algorithms.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1450-fsck.sh