Commit 91f13a18d5e4b139f2ccc64467117a090d1faaf3

Jameson Miller 2013-02-01T14:23:26

Try harder to find global config file

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/fileops.c b/src/fileops.c
index 23cb07e..4ae9e3a 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -544,12 +544,6 @@ int git_futils_find_global_file(git_buf *path, const char *filename)
 		/* try to look up file under path */
 		if (!win32_find_file(path, &root, filename))
 			return 0;
-
-		/* No error if file not found under %HOME%, b/c we don't trust it,
-		 * but do error if another var is set and yet file is not found.
-		 */
-		if (tmpl != tmpls)
-			break;
 	}
 
 	giterr_set(GITERR_OS, "The global file '%s' doesn't exist", filename);