Re: update_linked_gitdir writes relative path to .git/worktrees/<id>/gitdir
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Feb 8, 2016, 04:56 UTC
- Message-ID
- <CACsJy8D-dk7aHttHxeGYPuqRUQFx40AJyQQ39gVQvmM2Ttr1pA@mail.gmail.com>
- In-Reply-To
- <1454893478.2511.5.camel@mattmccutchen.net>
On Mon, Feb 8, 2016 at 8:04 AM, Matt McCutchen <matt@mattmccutchen.net> wrote:
Show 14 quoted lines
> On Sun, 2016-02-07 at 15:56 -0800, Junio C Hamano wrote: >> Matt McCutchen <matt@mattmccutchen.net> writes: >> >> > I noticed that when update_linked_gitdir chooses to update >> > .git/worktrees/<id>/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