Re: "git worktree repair" modifies the wrong repository
From: Russell Stuart <hidden>
Date: 2024-09-19 10:16:30
From: Russell Stuart <hidden>
Date: 2024-09-19 10:16:30
On 19/9/24 18:58, Eric Sunshine wrote:
I have a tentative fix implemented which seems to handle this case correctly. Once I've finished polishing it and formalizing the related test, I'll send out a patch.
Fantastic. I noticed repair hadn't changed the directories I thought it had, but had said it was changing something. Pondering what on earth could of happened, my first thought "surely not" - and then checked the originals. It caught me totally by surprise. Everyone I showed it to expressed the same surprise. I can't resist pointing out if "git worktree add" had of preserved the relative paths I gave it, it would not have happened. -- Regards, Russell Stuart