Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'nk/blame-abbrev'
[gitweb.git]
/
builtin
/
config.c
diff --git
a/builtin/config.c
b/builtin/config.c
index 76be0b786fd52f181f91b5ad3bdef891068946f1..3e3c52849773348a568241f678b3e3ee2e8d123a 100644
(file)
--- 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();