Re: [PATCH] Submodules always use a relative path to gitdir
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Jan 6, 2012, 15:07 UTC
- Message-ID
- <CACsJy8Agw6aTu=odeJXEbYuWQnE228w24_baP8u2eiX2-BEpeA@mail.gmail.com>
- In-Reply-To
- <CABURp0rFOFfX7eu-v6ZK07iTfXwhOne60d70GkCdOvx0k8BZkQ@mail.gmail.com>
On Fri, Jan 6, 2012 at 9:26 PM, Phil Hord <phil.hord@gmail.com> wrote:
> Do you see any _problem_ with making core.worktree a relative > directory in the specific case of git submodules?
Not a problem per se, but you should look at the comment at the top of t1510 to see where it is relative to. Two interesting rules:
2. .git file is relative to parent directory. .git file is basically symlink in disguise. The directory where .git file points to will become new git_dir.
3. core.worktree is relative to git_dir.
-- Duy