diff options
Diffstat (limited to 'ui-clone.c')
-rw-r--r-- | ui-clone.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -12,6 +12,7 @@ | |||
12 | #include "html.h" | 12 | #include "html.h" |
13 | #include "ui-shared.h" | 13 | #include "ui-shared.h" |
14 | #include "packfile.h" | 14 | #include "packfile.h" |
15 | #include "object-store.h" | ||
15 | 16 | ||
16 | static int print_ref_info(const char *refname, const struct object_id *oid, | 17 | static int print_ref_info(const char *refname, const struct object_id *oid, |
17 | int flags, void *cb_data) | 18 | int flags, void *cb_data) |
@@ -38,8 +39,8 @@ static void print_pack_info(void) | |||
38 | ctx.page.mimetype = "text/plain"; | 39 | ctx.page.mimetype = "text/plain"; |
39 | ctx.page.filename = "objects/info/packs"; | 40 | ctx.page.filename = "objects/info/packs"; |
40 | cgit_print_http_headers(); | 41 | cgit_print_http_headers(); |
41 | prepare_packed_git(); | 42 | reprepare_packed_git(the_repository); |
42 | for (pack = packed_git; pack; pack = pack->next) { | 43 | for (pack = get_packed_git(the_repository); pack; pack = pack->next) { |
43 | if (pack->pack_local) { | 44 | if (pack->pack_local) { |
44 | offset = strrchr(pack->pack_name, '/'); | 45 | offset = strrchr(pack->pack_name, '/'); |
45 | if (offset && offset[1] != '\0') | 46 | if (offset && offset[1] != '\0') |