summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-08-06 03:21:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-08-16 03:00:02 (GMT)
commit2bc8c1a8a6b1cdffc19badc7272f552302b79d3e (patch)
tree416338ec638a4e2c6254d618f4426a131a6ed797 /git.c
parentf0ef6a6eff15a3df8dc9ec61d93e3f7e540ed0ac (diff)
downloadgit-2bc8c1a8a6b1cdffc19badc7272f552302b79d3e.zip
git-2bc8c1a8a6b1cdffc19badc7272f552302b79d3e.tar.gz
git-2bc8c1a8a6b1cdffc19badc7272f552302b79d3e.tar.bz2
var: run setup_git_directory_gently() sooner
Part of a campaign to make repository-local configuration available early (simplifying the startup sequence for built-in commands). Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
-rw-r--r--git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/git.c b/git.c
index 86b0a88..89bce65 100644
--- a/git.c
+++ b/git.c
@@ -398,7 +398,7 @@ static void handle_internal_command(int argc, const char **argv)
{ "update-ref", cmd_update_ref, RUN_SETUP },
{ "update-server-info", cmd_update_server_info, RUN_SETUP },
{ "upload-archive", cmd_upload_archive },
- { "var", cmd_var },
+ { "var", cmd_var, RUN_SETUP_GENTLY },
{ "verify-tag", cmd_verify_tag, RUN_SETUP },
{ "version", cmd_version },
{ "whatchanged", cmd_whatchanged, RUN_SETUP | USE_PAGER },