]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t2402: use ref-store test helper to create broken symlink
authorHan-Wen Nienhuys <hanwen@google.com>
Mon, 2 Aug 2021 16:53:30 +0000 (16:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Aug 2021 20:17:20 +0000 (13:17 -0700)
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2402-worktree-list.sh

index fedcefe8de334f2925f0536b16fd405fecc52836..4012bd67b04445dd7012e75bcb9bee4057c58ec5 100755 (executable)
@@ -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 &&