packfile: add repository argument to reprepare_packed_git
[gitweb.git] / fast-import.c
index b3492fce5c440763d14d64c63537c18ca0186b82..47981e6db7f7349ea3cfed5620a2d48750ba86cf 100644 (file)
@@ -1038,7 +1038,7 @@ static void end_packfile(void)
                if (!new_p)
                        die("core git rejected index %s", idx_name);
                all_packs[pack_id] = new_p;
-               install_packed_git(new_p);
+               install_packed_git(the_repository, new_p);
                free(idx_name);
 
                /* Print the boundary */
@@ -3473,7 +3473,7 @@ int cmd_main(int argc, const char **argv)
                rc_free[i].next = &rc_free[i + 1];
        rc_free[cmd_save - 1].next = NULL;
 
-       prepare_packed_git();
+       prepare_packed_git(the_repository);
        start_packfile();
        set_die_routine(die_nicely);
        set_checkpoint_signal();