Commit c378a1184e8e4cdcffcad3271d650ab12792a6bc

Sven Strickroth 2012-09-25T00:11:53

git_config_open_default: Honour xdr config Signed-off-by: Sven Strickroth <email@cs-ware.de>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/config.c b/src/config.c
index e985473..d8e5475 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))