From: Junio C Hamano Date: Tue, 30 Aug 2005 23:59:37 +0000 (-0700) Subject: show-branch: make it work in a subdirectory. X-Git-Tag: v0.99.6~38 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=076b2324cdca9a2825c569cf9ec02d219c237e26;p=git.git show-branch: make it work in a subdirectory. Signed-off-by: Junio C Hamano --- diff --git a/show-branch.c b/show-branch.c index 958a5e884..8b37aebb0 100644 --- a/show-branch.c +++ b/show-branch.c @@ -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"))