[PATCH] checkout-index needs a working tree

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <gitster@...>, <git@...>
Date: Saturday, August 4, 2007 - 6:20 pm

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---

	This fixes "git --work-tree=/some/where/else checkout-index".

 git.c |    3 ++-
 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 },
-- 
1.5.3.rc4.1.g7805

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] checkout-index needs a working tree, Johannes Schindelin, (Sat Aug 4, 6:20 pm)
Re: [PATCH] checkout-index needs a working tree, Johannes Schindelin, (Thu Aug 9, 8:31 pm)
Re: [PATCH] checkout-index needs a working tree, Junio C Hamano, (Thu Aug 9, 8:55 pm)
Re: [PATCH] checkout-index needs a working tree, Johannes Schindelin, (Thu Aug 9, 9:11 pm)
Re: [PATCH] checkout-index needs a working tree, Junio C Hamano, (Sat Aug 4, 6:50 pm)
Re: [PATCH] checkout-index needs a working tree, Johannes Schindelin, (Sat Aug 4, 9:33 pm)