summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2015-01-03 09:41:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-01-07 18:23:08 (GMT)
commit1d0fa898eaa879d2fa4785164c3261dd40fe5f89 (patch)
tree9ca36b9782124675bd472dc32f93cc4765092263 /t
parent10f102be211cf1ba61c983fb463665147052daa9 (diff)
downloadgit-1d0fa898eaa879d2fa4785164c3261dd40fe5f89.zip
git-1d0fa898eaa879d2fa4785164c3261dd40fe5f89.tar.gz
git-1d0fa898eaa879d2fa4785164c3261dd40fe5f89.tar.bz2
checkout: add --ignore-other-wortrees
Noticed-by: Mark Levedahl <mlevedahl@gmail.com> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-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 915b506..f8e4df4 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 &&