rebase: refuse to switch to a branch already checked out elsewhere (test)
commit279f42fa27b4ffd0b3ac7c9378043eeb413f0f5a
authorRubén Justo <rjusto@gmail.com>
Sat, 25 Feb 2023 14:22:13 +0000 (25 15:22 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 25 Feb 2023 21:05:23 +0000 (25 13:05 -0800)
treec546240fe0b3db0810c4b831b98b2b7b03ad2adf
parentfaa4d5983bc1739351f49269660285a2628a3d72
rebase: refuse to switch to a branch already checked out elsewhere (test)

In b5cabb4a9 (rebase: refuse to switch to branch already checked out
elsewhere, 2020-02-23) we add a condition to prevent a rebase operation
involving a switch to a branch that is already checked out in another
worktree.

A bug has recently been fixed that caused this to not work as expected.

Let's add a test to notice if this changes in the future.

Signed-off-by: Rubén Justo <rjusto@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3400-rebase.sh