summaryrefslogtreecommitdiff
path: root/var.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-24 01:31:01 -0800
committerJunio C Hamano <junkio@cox.net>2005-11-25 15:16:35 -0800
commit5d318ce6a9fb18448e4a1a9b61d355d391ddc5ec (patch)
treea50a756f434b5e97778ddcd36788bcbce19b3e1c /var.c
parentae2b0f15180d4b044828c836bcab6a990efa5c8e (diff)
downloadgit-5d318ce6a9fb18448e4a1a9b61d355d391ddc5ec.tar.gz
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>
Diffstat (limited to 'var.c')
-rw-r--r--var.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/var.c b/var.c
index 98044594c3..59da56da0f 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;