Skip to content

Commit 3736b09

Browse files
hanwengitster
authored andcommitted
t2402: use ref-store test helper to create broken symlink
Signed-off-by: Han-Wen Nienhuys <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 885fdea commit 3736b09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t2402-worktree-list.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ test_expect_success 'broken main worktree still at the top' '
230230
EOF
231231
cd linked &&
232232
echo "worktree $(pwd)" >expected &&
233-
echo "ref: .broken" >../.git/HEAD &&
233+
(cd ../ && test-tool ref-store main create-symref HEAD .broken ) &&
234234
git worktree list --porcelain >out &&
235235
head -n 3 out >actual &&
236236
test_cmp ../expected actual &&

0 commit comments

Comments
 (0)