@@ -126,7 +126,7 @@ void release_tag_memory(struct tag *t)
126
126
t -> date = 0 ;
127
127
}
128
128
129
- int parse_tag_buffer_the_repository ( struct tag * item , const void * data , unsigned long size )
129
+ int parse_tag_buffer ( struct repository * r , struct tag * item , const void * data , unsigned long size )
130
130
{
131
131
struct object_id oid ;
132
132
char type [20 ];
@@ -154,13 +154,13 @@ int parse_tag_buffer_the_repository(struct tag *item, const void *data, unsigned
154
154
bufptr = nl + 1 ;
155
155
156
156
if (!strcmp (type , blob_type )) {
157
- item -> tagged = (struct object * )lookup_blob (the_repository , & oid );
157
+ item -> tagged = (struct object * )lookup_blob (r , & oid );
158
158
} else if (!strcmp (type , tree_type )) {
159
- item -> tagged = (struct object * )lookup_tree (the_repository , & oid );
159
+ item -> tagged = (struct object * )lookup_tree (r , & oid );
160
160
} else if (!strcmp (type , commit_type )) {
161
- item -> tagged = (struct object * )lookup_commit (the_repository , & oid );
161
+ item -> tagged = (struct object * )lookup_commit (r , & oid );
162
162
} else if (!strcmp (type , tag_type )) {
163
- item -> tagged = (struct object * )lookup_tag (the_repository , & oid );
163
+ item -> tagged = (struct object * )lookup_tag (r , & oid );
164
164
} else {
165
165
error ("Unknown type %s" , type );
166
166
item -> tagged = NULL ;
0 commit comments