summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Han-Wen Nienhuys <hanwen@google.com>2021-08-02 16:53:30 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-08-02 13:17:20 -0700
commit100ac47bf364290768001b2b438a84993a7042f6 (patch)
tree611163b498f2f911d9ae2a868d793b70b3ffcbb8 /t
parentt3320: use git-symbolic-ref rather than filesystem access (diff)
downloadtgif-100ac47bf364290768001b2b438a84993a7042f6.tar.xz
t2402: use ref-store test helper to create broken symlink
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t2402-worktree-list.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t2402-worktree-list.sh b/t/t2402-worktree-list.sh
index fedcefe8de..4012bd67b0 100755
--- a/t/t2402-worktree-list.sh
+++ b/t/t2402-worktree-list.sh
@@ -230,7 +230,7 @@ test_expect_success 'broken main worktree still at the top' '
EOF
cd linked &&
echo "worktree $(pwd)" >expected &&
- echo "ref: .broken" >../.git/HEAD &&
+ (cd ../ && test-tool ref-store main create-symref HEAD .broken ) &&
git worktree list --porcelain >out &&
head -n 3 out >actual &&
test_cmp ../expected actual &&