diff options
author | Rubén Justo <rjusto@gmail.com> | 2023-02-25 17:22:23 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-02-26 00:05:23 +0300 |
commit | 894ea945095b74542c6c4f4aefbe20f5b68be437 (patch) | |
tree | 665026cff3efa48b4af18e4655e9bd676343f991 /worktree.c | |
parent | 279f42fa27b4ffd0b3ac7c9378043eeb413f0f5a (diff) |
switch: reject if the branch is already checked out elsewhere (test)
Since 5883034 (checkout: reject if the branch is already checked out
elsewhere) in normal use, we do not allow multiple worktrees having the
same checked out branch.
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>
Diffstat (limited to 'worktree.c')
0 files changed, 0 insertions, 0 deletions