sha1_file.c: move delayed getenv(altdb) back to setup_git_env()
[git/git.git] / environment.c
index da3f7da..a5eaa97 100644 (file)
@@ -174,6 +174,7 @@ void setup_git_env(const char *git_dir)
        args.object_dir = getenv_safe(&to_free, DB_ENVIRONMENT);
        args.graft_file = getenv_safe(&to_free, GRAFT_ENVIRONMENT);
        args.index_file = getenv_safe(&to_free, INDEX_ENVIRONMENT);
+       args.alternate_db = getenv_safe(&to_free, ALTERNATE_DB_ENVIRONMENT);
        repo_set_gitdir(the_repository, git_dir, &args);
        argv_array_clear(&to_free);