From: Johannes Schindelin Date: Sat, 4 Aug 2007 22:20:07 +0000 (+0100) Subject: checkout-index needs a working tree X-Git-Tag: v1.5.3-rc5~71 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4465f410d6a8fa7abc5436aac6f58196f2b618d8;p=git.git checkout-index needs a working tree Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/git.c b/git.c index 25b8274d3..f8c454520 100644 --- a/git.c +++ b/git.c @@ -315,7 +315,8 @@ static void handle_internal_command(int argc, const char **argv) { "branch", cmd_branch, RUN_SETUP }, { "bundle", cmd_bundle }, { "cat-file", cmd_cat_file, RUN_SETUP }, - { "checkout-index", cmd_checkout_index, RUN_SETUP }, + { "checkout-index", cmd_checkout_index, + RUN_SETUP | NEED_WORK_TREE}, { "check-ref-format", cmd_check_ref_format }, { "check-attr", cmd_check_attr, RUN_SETUP | NEED_WORK_TREE }, { "cherry", cmd_cherry, RUN_SETUP },