aboutsummaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2006-09-14 05:03:59 +0400
committerJunio C Hamano <junkio@cox.net>2006-09-13 23:38:46 -0700
commit8112894d82637c199294702942cac477b756b678 (patch)
treedc6768c378694ab44db00471c198ac0b75c6936d /git.c
parent551029af305e04bed638771a3932e376243dddcb (diff)
downloadgit-8112894d82637c199294702942cac477b756b678.tar.gz
git-8112894d82637c199294702942cac477b756b678.tar.xz
Make count-objects, describe and merge-tree work in subdirectory
Call setup_git_directory() to make these commands work in subdirectory. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git.c')
-rw-r--r--git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/git.c b/git.c
index 335f405c2..47c85e10d 100644
--- a/git.c
+++ b/git.c
@@ -224,7 +224,7 @@ static void handle_internal_command(int argc, const char **argv, char **envp)
{ "checkout-index", cmd_checkout_index, RUN_SETUP },
{ "check-ref-format", cmd_check_ref_format },
{ "commit-tree", cmd_commit_tree, RUN_SETUP },
- { "count-objects", cmd_count_objects },
+ { "count-objects", cmd_count_objects, RUN_SETUP },
{ "diff", cmd_diff, RUN_SETUP },
{ "diff-files", cmd_diff_files, RUN_SETUP },
{ "diff-index", cmd_diff_index, RUN_SETUP },