Re: git fetch <remote> <branch> behaves weirdely when run in a worktree
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Oct 4, 2018, 07:00 UTC
- Message-ID
- <CACsJy8Ck8wnGFA2RT_fALHUe0mRO1fAOX9JpmSf6BH949ej=sw@mail.gmail.com>
- In-Reply-To
- <3F40923F-B596-403C-900D-6F411A0D1CE1@gmail.com>
On Thu, Oct 4, 2018 at 8:55 AM Kaartic Sivaraam <kaartic.sivaraam@gmail.com> wrote:
Show 13 quoted lines
> > > > On 3 October 2018 00:13:06 GMT+05:30, Kaartic Sivaraam <kaartic.sivaraam@gmail.com> wrote: > >Hi, > > > >Sorry for the delay. Got a little busy over the weekend. I seem to have > >found the reason behind the issue in the mean time :-) > > > > Oops, I forgot to mention there's more comments inline! > > BTW, is there an issue if .git/HEAD and .git/index are owned by root? The owners seem to have changed since I created the worktree possibly due to the cron job. Just wondering if it might cause some issues.
If the files are still readable by normal user and $GIT_DIR has permission to delete/rename them, then I think everything still works.
-- Duy