aboutsummaryrefslogtreecommitdiffstats
path: root/ui-clone.c
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2026-04-13 08:18:52 +0200
committerChristian Hesse <mail@eworm.de>2026-04-14 14:01:20 +0200
commit4c7cdfaad6af15ebbf21d50d6399710d0ea18b86 (patch)
treee6192b80ed2ce3ca4bc24eb78fbe163bcc49e45d /ui-clone.c
parentcache: truncate lock file before filling (diff)
downloadcgit-ch/git-2-54.tar.xz
cgit-ch/git-2-54.zip
RFC: git: update to v2.54.0-rc1ch/git-2-54
Update to git version v2.54.0-rc1, this requires changes for these upstream commits: * d9ecf268ef3f69130fa269012318470d908978f6 odb: embed base source in the "files" backend * cb506a8a69c953f7b87bb3ae099e0bed8218d3ab odb: introduce "files" source ... and probably more related. Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'ui-clone.c')
-rw-r--r--ui-clone.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/ui-clone.c b/ui-clone.c
index 5a1fab3..e11f496 100644
--- a/ui-clone.c
+++ b/ui-clone.c
@@ -33,22 +33,26 @@ static int print_ref_info(const struct reference *ref, void *cb_data)
static void print_pack_info(void)
{
- struct packfile_list_entry *e;
+ struct odb_source *source;
char *offset;
ctx.page.mimetype = "text/plain";
ctx.page.filename = "objects/info/packs";
cgit_print_http_headers();
odb_reprepare(the_repository->objects);
- for (e = packfile_store_get_packs(the_repository->objects->sources->packfiles); e; e = e->next) {
- struct packed_git *p = e->pack;
- if (p->pack_local) {
- offset = strrchr(p->pack_name, '/');
- if (offset && offset[1] != '\0')
- ++offset;
- else
- offset = p->pack_name;
- htmlf("P %s\n", offset);
+ for (source = the_repository->objects->sources; source; source = source->next) {
+ struct odb_source_files *files = odb_source_files_downcast(source);
+ struct packfile_list_entry *e;
+ for (e = files->packed->packs.head; e; e = e->next) {
+ struct packed_git *p = e->pack;
+ if (p->pack_local) {
+ offset = strrchr(p->pack_name, '/');
+ if (offset && offset[1] != '\0')
+ ++offset;
+ else
+ offset = p->pack_name;
+ htmlf("P %s\n", offset);
+ }
}
}
}