From 5561e6018d5909e2cdb91c7ca727f399f4c9e73b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 2 Dec 2026 11:00:21 +0100 Subject: RFC: git: update to v2.98.0-rc0 Update to git version v2.98.0-rc0, this requires changes for these upstream commits: * a28d2bfe19586dd1dd066c30f93581b48bbdcbc8 xdiff: replace mmbuffer_t with mmfile_t * cbfd4cb86f78054a0b824b86f058240c162612e0 odb/source-files: move alternates into the backend Signed-off-by: Christian Hesse --- ui-clone.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ui-clone.c') diff --git a/ui-clone.c b/ui-clone.c index e11f496..9a76853 100644 --- a/ui-clone.c +++ b/ui-clone.c @@ -33,17 +33,17 @@ static int print_ref_info(const struct reference *ref, void *cb_data) static void print_pack_info(void) { - struct odb_source *source; + struct odb_source_files *files; char *offset; ctx.page.mimetype = "text/plain"; ctx.page.filename = "objects/info/packs"; cgit_print_http_headers(); odb_reprepare(the_repository->objects); - for (source = the_repository->objects->sources; source; source = source->next) { - struct odb_source_files *files = odb_source_files_downcast(source); + files = odb_source_files_downcast(the_repository->objects->source); + for (struct odb_files_dir *dir = files->dirs->next; dir; dir = dir->next) { struct packfile_list_entry *e; - for (e = files->packed->packs.head; e; e = e->next) { + for (e = dir->packed->packs.head; e; e = e->next) { struct packed_git *p = e->pack; if (p->pack_local) { offset = strrchr(p->pack_name, '/'); -- cgit v1.2.3