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>

Han-Wen Nienhuys committed Aug 2, 2021 at 16:53 UTC 100ac47bf364290768001b2b438a84993a7042f6
1 file changed +1 -1
t/t2402-worktree-list.sh
+1 -1
@@ -230,7 +230,7 @@ test_expect_success 'broken main worktree still at the top' '
230 EOF
231 cd linked &&
232 echo "worktree $(pwd)" >expected &&
233 - echo "ref: .broken" >../.git/HEAD &&
233 + (cd ../ && test-tool ref-store main create-symref HEAD .broken ) &&
234 git worktree list --porcelain >out &&
235 head -n 3 out >actual &&
236 test_cmp ../expected actual &&