Re: [PATCH 1/3] init: correct re-initialization from a linked worktree

2016-09-09 Thread Duy Nguyen
On Fri, Sep 9, 2016 at 2:37 AM, Junio C Hamano wrote: > Nguyễn Thái Ngọc Duy writes: > >> When 'git init' is called from a linked worktree, '.git' dir as the main >> '.git' (i.e. $GIT_COMMON_DIR) and populate the whole repository skeleton >> in there. It

Re: [PATCH 1/3] init: correct re-initialization from a linked worktree

2016-09-08 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > When 'git init' is called from a linked worktree, '.git' dir as the main > '.git' (i.e. $GIT_COMMON_DIR) and populate the whole repository skeleton > in there. It does not harm anything (*) but it is still wrong. -ECANNOTPARSE. Did you mean

[PATCH 1/3] init: correct re-initialization from a linked worktree

2016-09-08 Thread Nguyễn Thái Ngọc Duy
When 'git init' is called from a linked worktree, '.git' dir as the main '.git' (i.e. $GIT_COMMON_DIR) and populate the whole repository skeleton in there. It does not harm anything (*) but it is still wrong. Since 'git init' calls set_git_dir() at preparation time, which indirectly calls