]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/get-tar-commit-id: make hash size independent
authorbrian m. carlson <sandals@crustytoothpaste.net>
Tue, 19 Feb 2019 00:05:19 +0000 (00:05 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Apr 2019 02:57:39 +0000 (11:57 +0900)
commit87003d2c94985f9b3c5ef23b9c042ae3b4ede6bb
tree2b8b0ca9938deb953df5ae6733196a6c99ad9c91
parent3548726cd7f5c5d2d8a1359ac21ae0354bd4c895
builtin/get-tar-commit-id: make hash size independent

To make this code independent of the hash size, verify that the length
of the comment is equal to that of any supported hash algorithm.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/get-tar-commit-id.c