summaryrefslogtreecommitdiff
path: root/t/t5000
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2017-04-05 17:24:39 +0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-04-14 23:51:38 -0700
commit86f951570839e241cfa8effbe195674193693a7f (patch)
tree06d97d0363a93e18dc2185937331ca522cb4a35b /t/t5000
parentpath.c: and an option to call real_path() in expand_user_path() (diff)
downloadtgif-86f951570839e241cfa8effbe195674193693a7f.tar.xz
config: resolve symlinks in conditional include's patterns
$GIT_DIR returned by get_git_dir() is normalized, with all symlinks resolved (see setup_work_tree function). In order to match paths (or patterns) against $GIT_DIR char-by-char, they have to be normalized too. There is a note in config.txt about this, that the user need to resolve symlinks by themselves if needed. The problem is, we allow certain path expansion, '~/' and './', for convenience and can't ask the user to resolve symlinks in these expansions. Make sure the expanded paths have all symlinks resolved. PS. The strbuf_realpath(&text, get_git_dir(), 1) is still needed because get_git_dir() may return relative path. Noticed-by: Torsten Bögershausen <tboegi@web.de> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5000')
0 files changed, 0 insertions, 0 deletions