mirror of
https://git.zx2c4.com/cgit
synced 2025-08-28 05:44:16 +02:00
Update to libgit 1.5.2-rc2
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
66cacd053b
commit
61c3ca978c
9 changed files with 50 additions and 837 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue