From: Junio C Hamano Date: Thu, 24 Nov 2005 09:31:01 +0000 (-0800) Subject: git-var: make it work in subdirectory. X-Git-Tag: v0.99.9k^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5d318ce6a9fb18448e4a1a9b61d355d391ddc5ec;p=git.git 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 --- diff --git a/var.c b/var.c index 98044594c..59da56da0 100644 --- a/var.c +++ b/var.c @@ -57,6 +57,8 @@ int main(int argc, char **argv) if (argc != 2) { usage(var_usage); } + + setup_git_directory(); setup_ident(); val = NULL;