git-cvsserver: port to SHA-256
commit05ea93d6b2bfb9a45a9019a5cfaba82dc81dc2f3
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 22 Jun 2020 18:04:16 +0000 (22 18:04 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Jun 2020 18:21:07 +0000 (22 11:21 -0700)
treef17d63423ed6348b43071ecc56e5528f3a85f0ae
parent66eadd119a02aa9a001d44006563b3bd99b41d54
git-cvsserver: port to SHA-256

The code of git-cvsserver currently has several hard-coded 20 and 40
constants that are the length of SHA-1.  When parsing the configuration
file, read the extensions.objectformat configuration setting as well as
CVS-related ones and adjust the hash sizes accordingly.  Use these
computed values in all the places we match object IDs.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Acked-by: Eric Wong <e@80x24.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-cvsserver.perl