Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRubén Justo <rjusto@gmail.com>2023-02-25 17:22:23 +0300
committerJunio C Hamano <gitster@pobox.com>2023-02-26 00:05:23 +0300
commit894ea945095b74542c6c4f4aefbe20f5b68be437 (patch)
tree665026cff3efa48b4af18e4655e9bd676343f991 /worktree.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 'worktree.c')
0 files changed, 0 insertions, 0 deletions