summaryrefslogtreecommitdiff
path: root/builtin-init-db.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-12-19 09:28:15 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-12-19 09:51:51 (GMT)
commitd4ebc36c5ee964592303c59260417b758d024c31 (patch)
treed26506bdce4e91e5eb0df875e8661fa6ac8992df /builtin-init-db.c
parent75c384efb52d0e3eb1e8c2f53668b4066fe6a8d6 (diff)
downloadgit-d4ebc36c5ee964592303c59260417b758d024c31.zip
git-d4ebc36c5ee964592303c59260417b758d024c31.tar.gz
git-d4ebc36c5ee964592303c59260417b758d024c31.tar.bz2
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-init-db.c b/builtin-init-db.c
index c8ed5c2..01f366a 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;
}