Re: [PATCH 3/5] worktree: teach "repair" to fix outgoing links to worktrees
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 31, 2020, 19:07 UTC
- Message-ID
- <xmqq7dtefxd3.fsf@gitster.c.googlers.com>
- In-Reply-To
- <CAPig+cT-w6LV490MGNyG_ihWkSzdgfnEBrjQCsafjndTRmMgFA@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
> No. For this repair to work, the gitfile in the linked worktree must > be intact; it must be pointing back at the .git/worktrees/<id> > directory so that "git worktree repair" can repair the corresponding > .git/worktrees/<id>/gitdir file.
OK, I missed the fact that we can learn <id> quite easily if we have the gitfile. Thanks.