Re: [PATCH v3] checkout/switch: disallow checking out same branch in multiple worktrees
- From
Carlo Arenas <carenas@gmail.com>
- Date
- Jan 20, 2023, 04:39 UTC
- Message-ID
- <CAPUEspikKmUMxCDYY7RC5Krozx3_v56sPN-uTBvjHDjWmvZjig@mail.gmail.com>
- In-Reply-To
- <CAPUEsph5phu8z=nYJt=zRh7q40-BwKuzhVQ-F=iLQppd9gR5hA@mail.gmail.com>
I should have known; the test is affected by the bug Rubén is trying to fix in:
https://lore.kernel.org/git/eeb0c778-af0a-235c-f009-bca3abafdb15@gmail.com/
Where the order that the worktrees are found is not deterministic and so the ignore_current_worktree flag to die_if_checked_out() might trigger incorrectly.
Carlo