]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5319-multi-pack-index.sh
t5319: make test work with SHA-256
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sat, 21 Dec 2019 19:49:26 +0000 (19:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Jan 2020 22:06:19 +0000 (14:06 -0800)
commit3c5e65cac15a7f3a52fc53babd079aeaddb47c20
tree9c52ae6d8e6d22c528243585fa76290655af66db
parent235d3cddb8b0149a4ee339602386af24bfad620d
t5319: make test work with SHA-256

This test corrupts various locations in a multi-pack index to test
various error responses.  However, these offsets differ between SHA-1
indexes and SHA-256 indexes due to differences in object length.  Use
test_oid to look up the correct offsets based on the algorithm.

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