mirror of
https://github.com/git/git.git
synced 2024-11-28 20:44:04 +08:00
diff: make diff_populate_filespec() honor its repo argument
diff_populate_filespec() takes a struct repository argument but it doesn't get passed down to read_object_file(). Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
d0654dc308
commit
eb999b3295
2
diff.c
2
diff.c
@ -4024,7 +4024,7 @@ int diff_populate_filespec(struct repository *r,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
s->data = read_object_file(&s->oid, &type, &s->size);
|
s->data = repo_read_object_file(r, &s->oid, &type, &s->size);
|
||||||
if (!s->data)
|
if (!s->data)
|
||||||
die("unable to read %s", oid_to_hex(&s->oid));
|
die("unable to read %s", oid_to_hex(&s->oid));
|
||||||
s->should_free = 1;
|
s->should_free = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user