Re: [PATCH 2/2] config: resolve symlinks in conditional include's patterns

2017-04-04 Thread Duy Nguyen
On Fri, Mar 31, 2017 at 1:38 AM, Junio C Hamano wrote: > Nguyễn Thái Ngọc Duy writes: > >> $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

Re: [PATCH 2/2] config: resolve symlinks in conditional include's patterns

2017-03-30 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > $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

[PATCH 2/2] config: resolve symlinks in conditional include's patterns

2017-03-30 Thread Nguyễn Thái Ngọc Duy
$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