Code

GIT_SKIP_TESTS: allow users to omit tests that are known to break
[git.git] / builtin-init-db.c
index c8ed5c2a0b8837c443be790eb6b4b520c6d6373b..01f366ad0bf5860aaf9123ef5d5653c612871a9f 100644 (file)
@@ -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;
        }