git-var: make it work in subdirectory.

Use setup_git_directory() so that it can find its .git
directory.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2005-11-24 01:31:01 -08:00
parent ae2b0f1518
commit 5d318ce6a9

2
var.c
View File

@ -57,6 +57,8 @@ int main(int argc, char **argv)
if (argc != 2) { if (argc != 2) {
usage(var_usage); usage(var_usage);
} }
setup_git_directory();
setup_ident(); setup_ident();
val = NULL; val = NULL;