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 9804459..59da56d 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;