summaryrefslogtreecommitdiff
path: root/t/t2025-checkout-to.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t2025-checkout-to.sh')
-rwxr-xr-xt/t2025-checkout-to.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t2025-checkout-to.sh b/t/t2025-checkout-to.sh
index 915b506b6c..f8e4df4818 100755
--- a/t/t2025-checkout-to.sh
+++ b/t/t2025-checkout-to.sh
@@ -79,6 +79,13 @@ test_expect_success 'die the same branch is already checked out' '
)
'
+test_expect_success 'not die the same branch is already checked out' '
+ (
+ cd here &&
+ git checkout --ignore-other-worktrees --to anothernewmaster newmaster
+ )
+'
+
test_expect_success 'not die on re-checking out current branch' '
(
cd there &&