--- OLD/builtin-config.c Thu Jan 1 00:00:00 1970 +++ NEW/builtin-config.c Thu Jan 1 00:00:00 1970 @@ -146,7 +146,7 @@ local = config_exclusive_filename; if (!local) { - const char *home = getenv("HOME"); + const char *home = env_home(); local = repo_config = git_pathdup("config"); if (git_config_global() && home) global = xstrdup(mkpath("%s/.gitconfig", home)); @@ -326,7 +326,7 @@ } if (use_global_config) { - char *home = getenv("HOME"); + char *home = env_home(); if (home) { char *user_config = xstrdup(mkpath("%s/.gitconfig", home)); config_exclusive_filename = user_config;