(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:test_description) op: assign_op.Equal rhs: { (SQ (Token id: Id.Lit_Chars val: 'git checkout-index on filesystem w/o symlinks test.\n' span_id: 15 ) (Token id:Id.Lit_Chars val:'\n' span_id:16) (Token id: Id.Lit_Chars val: 'This tests that git checkout-index creates a symbolic link as a plain\n' span_id: 17 ) (Token id:Id.Lit_Chars val:'file if core.symlinks is false.' span_id:18) ) } spids: [13] ) ] ) (C {(.)} {(./test-lib.sh)}) (C {(test_expect_success)} {(SQ (Token id:Id.Lit_Chars val:preparation span_id:31))} { (SQ (Token id:Id.Lit_Chars val:'\n' span_id:35) (Token id:Id.Lit_Chars val:'git config core.symlinks false &&\n' span_id:36) (Token id:Id.Lit_Chars val:'l=$(printf file | git hash-object -t blob -w --stdin) &&\n' span_id:37) (Token id: Id.Lit_Chars val: 'echo "120000 $l\tsymlink" | git update-index --index-info' span_id: 38 ) ) } ) (C {(test_expect_success)} {(SQ (Token id:Id.Lit_Chars val:'the checked-out symlink must be a file' span_id:46))} { (SQ (Token id:Id.Lit_Chars val:'\n' span_id:50) (Token id:Id.Lit_Chars val:'git checkout-index symlink &&\n' span_id:51) (Token id:Id.Lit_Chars val:'test -f symlink' span_id:52) ) } ) (C {(test_expect_success)} { (SQ (Token id: Id.Lit_Chars val: 'the file must be the blob we added during the setup' span_id: 60 ) ) } { (SQ (Token id:Id.Lit_Chars val:'\n' span_id:64) (Token id: Id.Lit_Chars val: 'test "$(git hash-object -t blob symlink)" = $l' span_id: 65 ) ) } ) (C {(test_done)}) ] )