ls-remote: send server options when using protocol v2
[gitweb.git] / fast-import.c
index b2f6d6d583e7337ae649ecd151c07c95ea75bcad..99f8f56e8c4fbd20b6e6186e26d89eda1baff0d0 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 */
@@ -3476,7 +3476,6 @@ 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();
        start_packfile();
        set_die_routine(die_nicely);
        set_checkpoint_signal();