From: Duy Nguyen Date: Mon, 08 Feb 2016 04:56:59 GMT Subject: Re: update_linked_gitdir writes relative path to .git/worktrees//gitdir Message-ID: In-Reply-To: <1454893478.2511.5.camel@mattmccutchen.net> On Mon, Feb 8, 2016 at 8:04 AM, Matt McCutchen wrote: > On Sun, 2016-02-07 at 15:56 -0800, Junio C Hamano wrote: >> Matt McCutchen writes: >> >> > I noticed that when update_linked_gitdir chooses to update >> > .git/worktrees//gitdir, the path it writes is relative, at >> > least >> > under some circumstances. This contradicts the gitrepository- >> > layout >> > man page, which says: >> >> Duy, is it safe to say that the fix has already been cooking in >> 'next' as nd/do-not-move-worktree-manually topic, > > Yes, looks like that topic removes the buggy functionality. I'm also pretty sure it's update_linked_gitdir() that writes relative path. So yes nd/do-not-move-worktree-manually should "fix" it. We don't have a way to recover broken gitdir files though. -- Duy