summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-10-15 00:01:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-10-15 03:53:16 (GMT)
commitd8a3a690204ec8583b536e562d46632cae5cfe03 (patch)
tree3c64fd7f0cf7ad0f7f0a926b28f3b88dbaebe662
parentfbd0e37cde633221d5b3ca239f26cb7d005da5c8 (diff)
downloadgit-d8a3a690204ec8583b536e562d46632cae5cfe03.zip
git-d8a3a690204ec8583b536e562d46632cae5cfe03.tar.gz
git-d8a3a690204ec8583b536e562d46632cae5cfe03.tar.bz2
tag: express constant in terms of the_hash_algo
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--tag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tag.c b/tag.c
index 1db663d..7445b8f 100644
--- a/tag.c
+++ b/tag.c
@@ -144,7 +144,7 @@ int parse_tag_buffer(struct repository *r, struct tag *item, const void *data, u
return 0;
item->object.parsed = 1;
- if (size < GIT_SHA1_HEXSZ + 24)
+ if (size < the_hash_algo->hexsz + 24)
return -1;
if (memcmp("object ", bufptr, 7) || parse_oid_hex(bufptr + 7, &oid, &bufptr) || *bufptr++ != '\n')
return -1;