aboutsummaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorJonas Fonseca <fonseca@diku.dk>2008-03-14 22:35:24 +0100
committerJunio C Hamano <gitster@pobox.com>2008-03-15 00:49:15 -0700
commitabe549e1791822b3105648452b1f8907f8fdb26a (patch)
tree3686f073dfc5e8073a41925d371c085507c327cc /git.c
parent267123b4299ea2c2f090ef169f9fc5039897cd72 (diff)
downloadgit-abe549e1791822b3105648452b1f8907f8fdb26a.tar.gz
git-abe549e1791822b3105648452b1f8907f8fdb26a.tar.xz
shortlog: do not require to run from inside a git repository
Once upon a time shortlog could be run from a non-git directory and still do its job. Fix this regression and add a small test for it. Signed-off-by: Jonas Fonseca <fonseca@diku.dk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 1e3eb1065..13de8018f 100644
--- a/git.c
+++ b/git.c
@@ -343,7 +343,7 @@ static void handle_internal_command(int argc, const char **argv)
{ "revert", cmd_revert, RUN_SETUP | NEED_WORK_TREE },
{ "rm", cmd_rm, RUN_SETUP },
{ "send-pack", cmd_send_pack, RUN_SETUP },
- { "shortlog", cmd_shortlog, RUN_SETUP | USE_PAGER },
+ { "shortlog", cmd_shortlog, USE_PAGER },
{ "show-branch", cmd_show_branch, RUN_SETUP },
{ "show", cmd_show, RUN_SETUP | USE_PAGER },
{ "status", cmd_status, RUN_SETUP | NEED_WORK_TREE },