summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-08-04 22:20:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-08-05 04:22:14 (GMT)
commit4465f410d6a8fa7abc5436aac6f58196f2b618d8 (patch)
treef320f8fc0e68e1ccc48260afe4f17e02a398e055 /git.c
parent936800bb559afb8e24d79d5fab555bf061a4a88c (diff)
downloadgit-4465f410d6a8fa7abc5436aac6f58196f2b618d8.zip
git-4465f410d6a8fa7abc5436aac6f58196f2b618d8.tar.gz
git-4465f410d6a8fa7abc5436aac6f58196f2b618d8.tar.bz2
checkout-index needs a working tree
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
-rw-r--r--git.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/git.c b/git.c
index 25b8274..f8c4545 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 },