My Various Git Projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbd0e37
)
tag: express constant in terms of the_hash_algo
author
brian m. carlson
<sandals@crustytoothpaste.net>
Mon, 15 Oct 2018 00:01:58 +0000
(
00:01
+0000)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 15 Oct 2018 03:53:16 +0000
(12:53 +0900)
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tag.c
patch
|
blob
|
history
diff --git
a/tag.c
b/tag.c
index
1db663d
..
7445b8f
100644
(file)
--- 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;