@matheusbsbs / matheus-bagliano / commits / 5d318ce6a9
Fork 0

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 <junkio@cox.net>

Junio C Hamano committed Nov 24, 2005 at 01:31 UTC 5d318ce6a9fb18448e4a1a9b61d355d391ddc5ec
1 file changed +2
var.c
+2
@@ -57,6 +57,8 @@ int main(int argc, char **argv)
57 if (argc != 2) {
58 usage(var_usage);
59 }
60 +
61 + setup_git_directory();
62 setup_ident();
63 val = NULL;
64