diff options
| author | Vicent Martà <vicent@github.com> | 2013-02-01 15:31:01 -0800 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2013-02-01 15:31:01 -0800 |
| commit | 219571a232689952dc586840ceebfe06dcb3aaf6 (patch) | |
| tree | 77f538dfccff988c543931d392e3a1230e56b58d | |
| parent | 329eee33871cc03133f5166a4e2908011f06b5b1 (diff) | |
| parent | 91f13a18d5e4b139f2ccc64467117a090d1faaf3 (diff) | |
| download | libgit2-219571a232689952dc586840ceebfe06dcb3aaf6.tar.gz | |
Merge pull request #1302 from jamill/global_config_lookup
Try harder to find global config file
| -rw-r--r-- | src/fileops.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/fileops.c b/src/fileops.c index 23cb07eb6..4ae9e3ab1 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); |
