@matheusbsbs / matheus-bagliano / commits / eb999b3295
Fork 0

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>

Matheus Tavares committed Jan 30, 2020 at 17:32 UTC eb999b3295b22680a41c0d807a8b442407b1b19f
1 file changed +1 -1
diff.c
+1 -1
@@ -4024,7 +4024,7 @@ int diff_populate_filespec(struct repository *r,
4024 return 0;
4025 }
4026 }
4027 - s->data = read_object_file(&s->oid, &type, &s->size);
4027 + s->data = repo_read_object_file(r, &s->oid, &type, &s->size);
4028 if (!s->data)
4029 die("unable to read %s", oid_to_hex(&s->oid));
4030 s->should_free = 1;