show-branch: make it work in a subdirectory.
authorJunio C Hamano <junkio@cox.net>
Tue, 30 Aug 2005 23:59:37 +0000 (16:59 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 31 Aug 2005 02:19:02 +0000 (19:19 -0700)
Signed-off-by: Junio C Hamano <junkio@cox.net>
show-branch.c

index 958a5e8..8b37aeb 100644 (file)
@@ -317,6 +317,8 @@ int main(int ac, char **av)
        int merge_base = 0;
        char **label;
 
+       setup_git_directory();
+
        while (1 < ac && av[1][0] == '-') {
                char *arg = av[1];
                if (!strcmp(arg, "--all"))