summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2015-01-03 16:41:26 +0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-01-07 10:23:08 -0800
commit1d0fa898eaa879d2fa4785164c3261dd40fe5f89 (patch)
tree9ca36b9782124675bd472dc32f93cc4765092263 /t
parentcheckout: pass whole struct to parse_branchname_arg instead of individual flags (diff)
downloadtgif-1d0fa898eaa879d2fa4785164c3261dd40fe5f89.tar.xz
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 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 &&