Skip to content

Commit

Permalink
show-branch: make it work in a subdirectory.
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Aug 31, 2005
1 parent d396836 commit 076b232
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions show-branch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 076b232

Please sign in to comment.