sha1-file.c: remove the_repo from read_object_with_reference()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
8dca754b1e
commit
d3b4705ab8
@ -1505,7 +1505,8 @@ void *read_object_file_extended(struct repository *r,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void *read_object_with_reference(const struct object_id *oid,
|
||||
void *read_object_with_reference(struct repository *r,
|
||||
const struct object_id *oid,
|
||||
const char *required_type_name,
|
||||
unsigned long *size,
|
||||
struct object_id *actual_oid_return)
|
||||
@ -1521,7 +1522,7 @@ void *read_object_with_reference(const struct object_id *oid,
|
||||
int ref_length = -1;
|
||||
const char *ref_type = NULL;
|
||||
|
||||
buffer = read_object_file(&actual_oid, &type, &isize);
|
||||
buffer = repo_read_object_file(r, &actual_oid, &type, &isize);
|
||||
if (!buffer)
|
||||
return NULL;
|
||||
if (type == required_type) {
|
||||
|
||||
Reference in New Issue
Block a user