From 61c3ca978c586c673aec618cb94210657278dda8 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Tue, 8 May 2007 22:40:59 +0200 Subject: Update to libgit 1.5.2-rc2 Signed-off-by: Lars Hjemli --- parsing.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'parsing.c') diff --git a/parsing.c b/parsing.c index 1013dad..332d61c 100644 --- a/parsing.c +++ b/parsing.c @@ -201,13 +201,13 @@ struct commitinfo *cgit_parse_commit(struct commit *commit) struct taginfo *cgit_parse_tag(struct tag *tag) { void *data; - char type[20]; + enum object_type type; unsigned long size; char *p, *t; struct taginfo *ret; - data = read_sha1_file(tag->object.sha1, type, &size); - if (!data || strcmp(type, tag_type)) { + data = read_sha1_file(tag->object.sha1, &type, &size); + if (!data || type != OBJ_TAG) { free(data); return 0; } -- cgit v1.2.3-70-g09d2