diff options
author | Junio C Hamano <junkio@cox.net> | 2006-12-19 01:28:15 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-12-19 01:51:51 -0800 |
commit | d4ebc36c5ee964592303c59260417b758d024c31 (patch) | |
tree | d26506bdce4e91e5eb0df875e8661fa6ac8992df /builtin-init-db.c | |
parent | 75c384efb52d0e3eb1e8c2f53668b4066fe6a8d6 (diff) | |
download | git-d4ebc36c5ee964592303c59260417b758d024c31.tar.gz git-d4ebc36c5ee964592303c59260417b758d024c31.tar.xz |
Use preprocessor constants for environment variable names.
We broke the discipline Linus set up to allow compiler help us
avoid typos in environment names in the early days of git over
time. This defines a handful preprocessor constants for
environment variable names used in relatively core parts of the
system.
I've left out variable names specific to subsystems such as HTTP
and SSL as I do not think they are big problems.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-init-db.c')
-rw-r--r-- | builtin-init-db.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-init-db.c b/builtin-init-db.c index c8ed5c2a0..01f366ad0 100644 --- a/builtin-init-db.c +++ b/builtin-init-db.c @@ -125,7 +125,7 @@ static void copy_templates(const char *git_dir, int len, const char *template_di DIR *dir; if (!template_dir) { - template_dir = getenv("GIT_TEMPLATE_DIR"); + template_dir = getenv(TEMPLATE_DIR_ENVIRONMENT); if (!template_dir) template_dir = DEFAULT_GIT_TEMPLATE_DIR; } |