git-var: make it work in subdirectory.
authorJunio C Hamano <junkio@cox.net>
Thu, 24 Nov 2005 09:31:01 +0000 (01:31 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 25 Nov 2005 23:16:35 +0000 (15:16 -0800)
Use setup_git_directory() so that it can find its .git
directory.

Signed-off-by: Junio C Hamano <junkio@cox.net>
var.c

diff --git a/var.c b/var.c
index 98044594c33245e37e2baca603944db68f3b381f..59da56da0f2f1dc9593ef16433fe5bb2db38e280 100644 (file)
--- 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;