diff options
| author | Sven Strickroth <email@cs-ware.de> | 2012-09-25 00:11:53 +0200 |
|---|---|---|
| committer | Sven Strickroth <email@cs-ware.de> | 2012-09-25 00:11:53 +0200 |
| commit | c378a1184e8e4cdcffcad3271d650ab12792a6bc (patch) | |
| tree | 54884f6957a5dfbeb9edf698a9702adf015ca626 /src | |
| parent | d7940ac3e4afd92fca527aafcc13a88817c5670f (diff) | |
| download | libgit2-c378a1184e8e4cdcffcad3271d650ab12792a6bc.tar.gz | |
git_config_open_default: Honour xdr config
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index e9854731b..d8e54751a 100644 --- a/src/config.c +++ b/src/config.c @@ -541,6 +541,9 @@ int git_config_open_default(git_config **out) error = git_config_new(&cfg); if (!error && !git_config_find_global_r(&buf)) + error = git_config_add_file_ondisk(cfg, buf.ptr, 3); + + if (!error && !git_config_find_xdr_r(&buf)) error = git_config_add_file_ondisk(cfg, buf.ptr, 2); if (!error && !git_config_find_system_r(&buf)) |
