diff options
Diffstat (limited to 'http-backend.c')
| -rw-r--r-- | http-backend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http-backend.c b/http-backend.c index d5dfe762bb..52f0483dd3 100644 --- a/http-backend.c +++ b/http-backend.c @@ -608,13 +608,13 @@ static void get_info_packs(struct strbuf *hdr, char *arg UNUSED) size_t cnt = 0; select_getanyfile(hdr); - for (p = get_all_packs(the_repository); p; p = p->next) { + repo_for_each_pack(the_repository, p) { if (p->pack_local) cnt++; } strbuf_grow(&buf, cnt * 53 + 2); - for (p = get_all_packs(the_repository); p; p = p->next) { + repo_for_each_pack(the_repository, p) { if (p->pack_local) strbuf_addf(&buf, "P %s\n", p->pack_name + objdirlen + 6); } |
