index-pack: run setup_git_directory_gently() sooner
[gitweb.git] / git.c
diff --git a/git.c b/git.c
index eaf6e7f87d74d8ee4da20e4dd7448b08367d0fce..982406839c976cc8e7d01bacc99d21a31be25584 100644 (file)
--- a/git.c
+++ b/git.c
@@ -339,7 +339,7 @@ static void handle_internal_command(int argc, const char **argv)
                { "grep", cmd_grep, RUN_SETUP_GENTLY },
                { "hash-object", cmd_hash_object },
                { "help", cmd_help },
-               { "index-pack", cmd_index_pack },
+               { "index-pack", cmd_index_pack, RUN_SETUP_GENTLY },
                { "init", cmd_init_db },
                { "init-db", cmd_init_db },
                { "log", cmd_log, RUN_SETUP | USE_PAGER },