summaryrefslogtreecommitdiff
path: root/builtin/config.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2011-03-15 09:04:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-03-15 19:23:30 (GMT)
commit8f323c00dd3c9b396b01a1aeea74f7dfd061bb7f (patch)
treef3f33e362aafcbac2374252026ccbda07508bdc0 /builtin/config.c
parente91b6c504961a147f0ab4e2fc05be914f881290a (diff)
downloadgit-8f323c00dd3c9b396b01a1aeea74f7dfd061bb7f.zip
git-8f323c00dd3c9b396b01a1aeea74f7dfd061bb7f.tar.gz
git-8f323c00dd3c9b396b01a1aeea74f7dfd061bb7f.tar.bz2
config: drop support for GIT_CONFIG_NOGLOBAL
Now that test-lib sets $HOME to protect against pollution from user settings, GIT_CONFIG_NOGLOBAL is not needed for use by the test suite any more. And as luck would have it, a quick code search reveals no other users in the wild. This patch does not affect GIT_CONFIG_NOSYSTEM, which is still needed. Helped-by: Jeff King <peff@peff.net> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/config.c')
-rw-r--r--builtin/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/config.c b/builtin/config.c
index 76be0b7..3e3c528 100644
--- a/builtin/config.c
+++ b/builtin/config.c
@@ -160,7 +160,7 @@ static int get_value(const char *key_, const char *regex_)
if (!local) {
const char *home = getenv("HOME");
local = repo_config = git_pathdup("config");
- if (git_config_global() && home)
+ if (home)
global = xstrdup(mkpath("%s/.gitconfig", home));
if (git_config_system())
system_wide = git_etc_gitconfig();