author | Lars Hjemli <hjemli@gmail.com> | 2007-05-08 20:40:59 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-05-08 21:38:49 (UTC) |
commit | 61c3ca978c586c673aec618cb94210657278dda8 (patch) (unidiff) | |
tree | 7011987769e65ad0e7aa8b79f648357e9cd88c30 /parsing.c | |
parent | 66cacd053ba900c8eb3b7962027370c84a97f990 (diff) | |
download | cgit-61c3ca978c586c673aec618cb94210657278dda8.zip cgit-61c3ca978c586c673aec618cb94210657278dda8.tar.gz cgit-61c3ca978c586c673aec618cb94210657278dda8.tar.bz2 |
Update to libgit 1.5.2-rc2
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | parsing.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -198,19 +198,19 @@ struct commitinfo *cgit_parse_commit(struct commit *commit) | |||
198 | } | 198 | } |
199 | 199 | ||
200 | 200 | ||
201 | struct taginfo *cgit_parse_tag(struct tag *tag) | 201 | struct taginfo *cgit_parse_tag(struct tag *tag) |
202 | { | 202 | { |
203 | void *data; | 203 | void *data; |
204 | char type[20]; | 204 | enum object_type type; |
205 | unsigned long size; | 205 | unsigned long size; |
206 | char *p, *t; | 206 | char *p, *t; |
207 | struct taginfo *ret; | 207 | struct taginfo *ret; |
208 | 208 | ||
209 | data = read_sha1_file(tag->object.sha1, type, &size); | 209 | data = read_sha1_file(tag->object.sha1, &type, &size); |
210 | if (!data || strcmp(type, tag_type)) { | 210 | if (!data || type != OBJ_TAG) { |
211 | free(data); | 211 | free(data); |
212 | return 0; | 212 | return 0; |
213 | } | 213 | } |
214 | 214 | ||
215 | ret = xmalloc(sizeof(*ret)); | 215 | ret = xmalloc(sizeof(*ret)); |
216 | ret->tagger = NULL; | 216 | ret->tagger = NULL; |