From 5d318ce6a9fb18448e4a1a9b61d355d391ddc5ec Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Thu, 24 Nov 2005 01:31:01 -0800 Subject: [PATCH] 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 --- var.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.30.2