mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-11 17:41:55 +00:00
Merge pull request #1302 from jamill/global_config_lookup
Try harder to find global config file
This commit is contained in:
commit
219571a232
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user