]> git.ipfire.org Git - thirdparty/git.git/commit
t4044: update test to work with SHA-256
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 28 Oct 2019 00:59:05 +0000 (00:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Oct 2019 02:34:58 +0000 (11:34 +0900)
commit38ee26b2a3764da5120c3e0340501babef6d51c3
tree97c14be254ab588dd8a82d6c503b296b6568f097
parent37ab8ebef164cc2813658c824561a09dc7cde22f
t4044: update test to work with SHA-256

This test produces pseudo-collisions and tests git diff's behavior with
them, and is therefore sensitive to the hash in use. Update the test to
compute the collisions for both SHA-1 and SHA-256 using appropriate
constants. Move the heredocs inside the setup block so that all of the
setup code can be tested for failure.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4044-diff-index-unique-abbrev.sh