trivial: use git-repo-config to detect if the test can be run on the repository
[gitweb.git] / 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;