]> git.ipfire.org Git - thirdparty/git.git/commit
transport: use parse_oid_hex instead of a constant
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 15 Oct 2018 00:01:57 +0000 (00:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Oct 2018 03:53:15 +0000 (12:53 +0900)
commitfbd0e37cde633221d5b3ca239f26cb7d005da5c8
tree41f0b583a5b8f2c4a3d4f90b47565ebfd3be5a9e
parentf690b6b03049e8f564aa0a1abbde5ec0731c5774
transport: use parse_oid_hex instead of a constant

Use parse_oid_hex to compute a pointer instead of using GIT_SHA1_HEXSZ.
This simplifies the code and makes it independent of the hash length.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport.c