struct strbuf loose_buf = STRBUF_INIT;
struct strbuf pack_buf = STRBUF_INIT;
struct strbuf garbage_buf = STRBUF_INIT;
- if (!get_packed_git(the_repository))
- prepare_packed_git();
+
for (p = get_packed_git(the_repository); p; p = p->next) {
if (!p->pack_local)
continue;