@matheusbsbs / matheus-bagliano / commits / 4465f410d6
Fork 0

checkout-index needs a working tree

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Aug 4, 2007 at 23:20 UTC 4465f410d6a8fa7abc5436aac6f58196f2b618d8
1 file changed +2 -1
git.c
+2 -1
@@ -315,7 +315,8 @@ static void handle_internal_command(int argc, const char **argv)
315 { "branch", cmd_branch, RUN_SETUP },
316 { "bundle", cmd_bundle },
317 { "cat-file", cmd_cat_file, RUN_SETUP },
318 - { "checkout-index", cmd_checkout_index, RUN_SETUP },
318 + { "checkout-index", cmd_checkout_index,
319 + RUN_SETUP | NEED_WORK_TREE},
320 { "check-ref-format", cmd_check_ref_format },
321 { "check-attr", cmd_check_attr, RUN_SETUP | NEED_WORK_TREE },
322 { "cherry", cmd_cherry, RUN_SETUP },