Re: [PATCH 1/6] config.c: avoid git_path() in do_git_config_sequence()

2019-01-10 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > This function has both $GIT_COMMON_DIR and $GIT_DIR in "opts". Use it > to construct config.worktree path instead because git_pathdup() is > tied to the current worktree, but the given $GIT_DIR could be from > another one. Given that git_pathdup() does do

[PATCH 1/6] config.c: avoid git_path() in do_git_config_sequence()

2018-12-27 Thread Nguyễn Thái Ngọc Duy
This function has both $GIT_COMMON_DIR and $GIT_DIR in "opts". Use it to construct config.worktree path instead because git_pathdup() is tied to the current worktree, but the given $GIT_DIR could be from another one. Signed-off-by: Nguyễn Thái Ngọc Duy --- config.c | 14 -- 1 file ch