From: Duy Nguyen Date: Wed, 26 Sep 2018 15:24:14 GMT Subject: Re: git fetch behaves weirdely when run in a worktree Message-ID: In-Reply-To: <39F9931A-B297-4525-A131-736B900F37AF@gmail.com> On Wed, Sep 26, 2018 at 6:46 AM Kaartic Sivaraam 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