Re: git fetch <remote> <branch> behaves weirdely when run in a worktree
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Sep 26, 2018, 15:24 UTC
- Message-ID
- <CACsJy8AScp1v+R62vXWuP-45LLLYwfSBNaZJfR02=d+2CzDqhg@mail.gmail.com>
- In-Reply-To
- <39F9931A-B297-4525-A131-736B900F37AF@gmail.com>
On Wed, Sep 26, 2018 at 6:46 AM Kaartic Sivaraam <kaartic.sivaraam@gmail.com> wrote:
> This is the most interesting part of the issue. I **did not** run 'git fetch ...' in between those cat commands. I was surprised by how the contents of FETCH_HEAD are changing without me spawning any git processes that might change it. Am I missing something here? As far as i could remember, there wasn't any IDE running that might automatically spawn git commands especially in that work tree. Weird.
Another possibility is FETCH_HEAD is somehow a symlink (or the whole worktrees/$BUILD_WORKTREE is a symlink) and is accidentally shared with some other repos/worktrees.
-- Duy