summaryrefslogtreecommitdiff
path: root/t/t2026-prune-linked-checkouts.sh
diff options
context:
space:
mode:
authorLibravatar Eric Sunshine <sunshine@sunshineco.com>2015-07-06 13:30:54 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-07-06 11:07:47 -0700
commitf194b1ef6ee81788a45053fa6f7409233fc54276 (patch)
treeb342704c6d1ea4b0309718c6f21f7cf7b6839199 /t/t2026-prune-linked-checkouts.sh
parentworktree: add -b/-B options (diff)
downloadtgif-f194b1ef6ee81788a45053fa6f7409233fc54276.tar.xz
tests: worktree: retrofit "checkout --to" tests for "worktree add"
With the introduction of "git worktree add", "git checkout --to" is slated for removal. Therefore, retrofit linked worktree creation tests to use "git worktree add" instead. (The test to check exclusivity of "checkout --to" and "checkout <paths>" is dropped altogether since it becomes meaningless with retirement of "checkout --to".) Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2026-prune-linked-checkouts.sh')
-rwxr-xr-xt/t2026-prune-linked-checkouts.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t2026-prune-linked-checkouts.sh b/t/t2026-prune-linked-checkouts.sh
index e872f02dac..a0f1e3bb80 100755
--- a/t/t2026-prune-linked-checkouts.sh
+++ b/t/t2026-prune-linked-checkouts.sh
@@ -88,7 +88,7 @@ test_expect_success 'not prune recent checkouts' '
test_expect_success 'not prune proper checkouts' '
test_when_finished rm -r .git/worktrees &&
- git checkout "--to=$PWD/nop" --detach master &&
+ git worktree add --detach "$PWD/nop" master &&
git worktree prune &&
test -d .git/worktrees/nop
'