t5318: update for SHA-256
commit1d86c8f0ce3471f0e8f2194dd821ffd292d79e3d
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sat, 21 Dec 2019 19:49:24 +0000 (21 19:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Jan 2020 22:06:19 +0000 (15 14:06 -0800)
tree49ac20f36789aa039b2fc8f67ea69603e279f5cd
parent525a7f176980439fb1c32a34b705b06bcb7033f1
t5318: update for SHA-256

When running with SHA-256 as the hash algorithm, the hash version octet
is 2 instead of 1.  Pick the right value depending on the hash algorithm
and use it where we look for the existing value.  To ensure the test
checking for invalid data passes, use 3 as the test value for an invalid
hash version.

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