summaryrefslogtreecommitdiff
path: root/t/t2402-worktree-list.sh
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@google.com>2021-08-02 16:53:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-08-02 20:17:20 (GMT)
commit100ac47bf364290768001b2b438a84993a7042f6 (patch)
tree611163b498f2f911d9ae2a868d793b70b3ffcbb8 /t/t2402-worktree-list.sh
parent2f566d665ac3ef97715617aae839fa2e6f7fce93 (diff)
downloadgit-100ac47bf364290768001b2b438a84993a7042f6.zip
git-100ac47bf364290768001b2b438a84993a7042f6.tar.gz
git-100ac47bf364290768001b2b438a84993a7042f6.tar.bz2
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/t2402-worktree-list.sh')
-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 fedcefe..4012bd6 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 &&