t3311: make test work with SHA-256
authorbrian m. carlson <sandals@crustytoothpaste.net>
Fri, 7 Feb 2020 00:52:39 +0000 (00:52 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Feb 2020 19:07:29 +0000 (11:07 -0800)
commit5df0f11f079fa83db8269f2d9818d93a240b115c
tree590c89857a2c4e14100800ffc0eacc71f9ba2a7e
parent07877f393c9dbf96af606706475662259c6a3d57
t3311: make test work with SHA-256

Replace the hard-coded SHA-1 constants with the use of test_oid to look
up an appropriate constant for each hash algorithm.  In addition, adjust
the fanout checks to look for either zero or one slashes in the filename
without needing to check for an explicit length.

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