summaryrefslogtreecommitdiff
path: root/t/helper/test-pack-deltas.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-10-15 10:29:34 -0700
committerJunio C Hamano <gitster@pobox.com>2025-10-15 10:29:34 -0700
commit88ad76ca8920153e4ae3d56b14926d97271ffc0d (patch)
tree112adaecf840975a4443438f221e6b55c06a80da /t/helper/test-pack-deltas.c
parent2a33cd686476b9443bf9bfc47b1398478b0ebe73 (diff)
parente1d062e8ba0b72f49e9ef9713cc7011c330baab8 (diff)
Merge branch 'ps/odb-clean-stale-wrappers' into maint-2.51
Code clean-up. * ps/odb-clean-stale-wrappers: odb: drop deprecated wrapper functions
Diffstat (limited to 't/helper/test-pack-deltas.c')
-rw-r--r--t/helper/test-pack-deltas.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/t/helper/test-pack-deltas.c b/t/helper/test-pack-deltas.c
index 4caa024b1e..4981401eaa 100644
--- a/t/helper/test-pack-deltas.c
+++ b/t/helper/test-pack-deltas.c
@@ -51,16 +51,14 @@ static void write_ref_delta(struct hashfile *f,
unsigned long size, base_size, delta_size, compressed_size, hdrlen;
enum object_type type;
void *base_buf, *delta_buf;
- void *buf = repo_read_object_file(the_repository,
- oid, &type,
- &size);
+ void *buf = odb_read_object(the_repository->objects,
+ oid, &type, &size);
if (!buf)
die("unable to read %s", oid_to_hex(oid));
- base_buf = repo_read_object_file(the_repository,
- base, &type,
- &base_size);
+ base_buf = odb_read_object(the_repository->objects,
+ base, &type, &base_size);
if (!base_buf)
die("unable to read %s", oid_to_hex(base));