Skip to content

Commit eb999b3

Browse files
matheustavaresgitster
authored andcommitted
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>
1 parent d0654dc commit eb999b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4024,7 +4024,7 @@ int diff_populate_filespec(struct repository *r,
40244024
return 0;
40254025
}
40264026
}
4027-
s->data = read_object_file(&s->oid, &type, &s->size);
4027+
s->data = repo_read_object_file(r, &s->oid, &type, &s->size);
40284028
if (!s->data)
40294029
die("unable to read %s", oid_to_hex(&s->oid));
40304030
s->should_free = 1;

0 commit comments

Comments
 (0)