annotate: make it work from subdirectories.
authorJunio C Hamano <junkio@cox.net>
Mon, 21 May 2007 02:56:28 +0000 (19:56 -0700)
committerJunio C Hamano <junkio@cox.net>
Mon, 21 May 2007 02:56:28 +0000 (19:56 -0700)
Signed-off-by: Junio C Hamano <junkio@cox.net>
git.c

diff --git a/git.c b/git.c
index 7def319e609454cd2389d2fc60caeaa5831d339e..3d0754cbaa2545c656891febde240911b2335f7d 100644 (file)
--- a/git.c
+++ b/git.c
@@ -225,7 +225,7 @@ static void handle_internal_command(int argc, const char **argv, char **envp)
                int option;
        } commands[] = {
                { "add", cmd_add, RUN_SETUP | NOT_BARE },
-               { "annotate", cmd_annotate, USE_PAGER },
+               { "annotate", cmd_annotate, RUN_SETUP | USE_PAGER },
                { "apply", cmd_apply },
                { "archive", cmd_archive },
                { "blame", cmd_blame, RUN_SETUP },