summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorRubén Justo <rjusto@gmail.com>2023-02-25 15:22:23 +0100
committerJunio C Hamano <gitster@pobox.com>2023-02-25 13:05:23 -0800
commit894ea945095b74542c6c4f4aefbe20f5b68be437 (patch)
tree665026cff3efa48b4af18e4655e9bd676343f991 /commit.c
parent279f42fa27b4ffd0b3ac7c9378043eeb413f0f5a (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 'commit.c')
0 files changed, 0 insertions, 0 deletions