diff options
author | Junio C Hamano <junkio@cox.net> | 2005-11-24 01:31:01 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-25 15:16:35 -0800 |
commit | 5d318ce6a9fb18448e4a1a9b61d355d391ddc5ec (patch) | |
tree | a50a756f434b5e97778ddcd36788bcbce19b3e1c /var.c | |
parent | ae2b0f15180d4b044828c836bcab6a990efa5c8e (diff) | |
download | git-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -57,6 +57,8 @@ int main(int argc, char **argv) if (argc != 2) { usage(var_usage); } + + setup_git_directory(); setup_ident(); val = NULL; |