summaryrefslogtreecommitdiff
path: root/var.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-24 09:31:01 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-11-25 23:16:35 (GMT)
commit5d318ce6a9fb18448e4a1a9b61d355d391ddc5ec (patch)
treea50a756f434b5e97778ddcd36788bcbce19b3e1c /var.c
parentae2b0f15180d4b044828c836bcab6a990efa5c8e (diff)
downloadgit-5d318ce6a9fb18448e4a1a9b61d355d391ddc5ec.zip
git-5d318ce6a9fb18448e4a1a9b61d355d391ddc5ec.tar.gz
git-5d318ce6a9fb18448e4a1a9b61d355d391ddc5ec.tar.bz2
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 9804459..59da56d 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;