summaryrefslogtreecommitdiff
path: root/include/git2/patch.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2017-03-23 11:59:06 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2017-03-23 12:12:39 +0000
commit29aef94830edb6231a0737cfca35233f9a95463f (patch)
tree4184da2670ba0d782c6507c40d63825b6b5b62c3 /include/git2/patch.h
parent5135ddaac6710cc0b4373764835dc6c519812bc4 (diff)
downloadlibgit2-29aef94830edb6231a0737cfca35233f9a95463f.tar.gz
config, attrcache: don't fallback to dirs literally named `~`
The config and attrcache file reading code would attempt to load a file in a home directory by expanding the `~` and looking for the file, using `git_sysdir_find_global_file`. If the file was not found, the error handling would look for the literal path, eg `~/filename.txt`. Use the new `git_config_expand_global_file` instead, which allows us to get the path to the file separately, when the path is prefixed with `~/`, and fail with a not found error without falling back to looking for the literal path.
Diffstat (limited to 'include/git2/patch.h')
0 files changed, 0 insertions, 0 deletions