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 958a5e884afdf8bc21d672242d6bbee8d3c7340a..8b37aebb019ef91d773f12e2bf4c25eafcd9d355 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"))