diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2019-12-21 19:49:24 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-01-15 14:06:19 -0800 |
commit | 1d86c8f0ce3471f0e8f2194dd821ffd292d79e3d (patch) | |
tree | 49ac20f36789aa039b2fc8f67ea69603e279f5cd /log-tree.h | |
parent | t4300: abstract away SHA-1-specific constants (diff) | |
download | tgif-1d86c8f0ce3471f0e8f2194dd821ffd292d79e3d.tar.xz |
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>
Diffstat (limited to 'log-tree.h')
0 files changed, 0 insertions, 0 deletions