(command.CommandList
  children: [
    (command.ShAssignment
      left: <Id.Lit_VarLike 'test_description='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'test_description='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'test_description='> name:test_description)
          op: assign_op.Equal
          rhs: {(SQ <'git archive attribute tests'>)}
        )
      ]
      redirects: []
    )
    (command.Simple
      blame_tok: <.>
      more_env: []
      words: [{<.>} {<'./test-lib.sh'>}]
      redirects: []
      do_fork: T
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'SUBSTFORMAT='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'SUBSTFORMAT='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'SUBSTFORMAT='> name:SUBSTFORMAT)
          op: assign_op.Equal
          rhs: {(SQ <'%H (%h)%n'>)}
        )
      ]
      redirects: []
    )
    (command.ShFunction
      name_tok: <test_expect_exists>
      name: test_expect_exists
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Simple
              blame_tok: <test_expect_success>
              more_env: []
              words: [
                {<test_expect_success>}
                {(DQ <' '> ($ Id.VSub_Number 1) <' exists'>)}
                {(DQ <'test -e '> ($ Id.VSub_Number 1))}
              ]
              redirects: []
              do_fork: T
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name_tok: <test_expect_missing>
      name: test_expect_missing
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Simple
              blame_tok: <test_expect_success>
              more_env: []
              words: [
                {<test_expect_success>}
                {(DQ <' '> ($ Id.VSub_Number 1) <' does not exist'>)}
                {(DQ <'test ! -e '> ($ Id.VSub_Number 1))}
              ]
              redirects: []
              do_fork: T
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <setup>)}
        {
          (SQ <'\n'> <'\techo ignored >ignored &&\n'> 
            <'\techo ignored export-ignore >>.git/info/attributes &&\n'> <'\tgit add ignored &&\n'> <'\n'> <'\techo ignored by tree >ignored-by-tree &&\n'> 
            <'\techo ignored-by-tree export-ignore >.gitattributes &&\n'> <'\tgit add ignored-by-tree .gitattributes &&\n'> <'\n'> 
            <'\techo ignored by worktree >ignored-by-worktree &&\n'> <'\techo ignored-by-worktree export-ignore >.gitattributes &&\n'> 
            <'\tgit add ignored-by-worktree &&\n'> <'\n'> <'\tprintf "A\\$Format:%s\\$O" "$SUBSTFORMAT" >nosubstfile &&\n'> 
            <'\tprintf "A\\$Format:%s\\$O" "$SUBSTFORMAT" >substfile1 &&\n'> <'\tprintf "A not substituted O" >substfile2 &&\n'> 
            <'\techo "substfile?" export-subst >>.git/info/attributes &&\n'> <'\tgit add nosubstfile substfile1 substfile2 &&\n'> <'\n'> <'\tgit commit -m. &&\n'> <'\n'> 
            <'\tgit clone --bare . bare &&\n'> <'\tcp .git/info/attributes bare/info/attributes\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'git archive'>)}
        {
          (SQ <'\n'> <'\tgit archive HEAD >archive.tar &&\n'> 
            <'\t(mkdir archive && cd archive && "$TAR" xf -) <archive.tar\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_missing>
      more_env: []
      words: [{<test_expect_missing>} {<'archive/ignored'>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_missing>
      more_env: []
      words: [{<test_expect_missing>} {<'archive/ignored-by-tree'>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_exists>
      more_env: []
      words: [{<test_expect_exists>} {<'archive/ignored-by-worktree'>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'git archive with worktree attributes'>)}
        {
          (SQ <'\n'> <'\tgit archive --worktree-attributes HEAD >worktree.tar &&\n'> 
            <'\t(mkdir worktree && cd worktree && "$TAR" xf -) <worktree.tar\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_missing>
      more_env: []
      words: [{<test_expect_missing>} {<'worktree/ignored'>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_exists>
      more_env: []
      words: [{<test_expect_exists>} {<'worktree/ignored-by-tree'>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_missing>
      more_env: []
      words: [{<test_expect_missing>} {<'worktree/ignored-by-worktree'>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'git archive --worktree-attributes option'>)}
        {
          (SQ <'\n'> 
            <'\tgit archive --worktree-attributes --worktree-attributes HEAD >worktree.tar &&\n'> <'\t(mkdir worktree2 && cd worktree2 && "$TAR" xf -) <worktree.tar\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_missing>
      more_env: []
      words: [{<test_expect_missing>} {<'worktree2/ignored'>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_exists>
      more_env: []
      words: [{<test_expect_exists>} {<'worktree2/ignored-by-tree'>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_missing>
      more_env: []
      words: [{<test_expect_missing>} {<'worktree2/ignored-by-worktree'>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'git archive vs. bare'>)}
        {
          (SQ <'\n'> <'\t(cd bare && git archive HEAD) >bare-archive.tar &&\n'> 
            <'\ttest_cmp_bin archive.tar bare-archive.tar\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'git archive with worktree attributes, bare'>)}
        {
          (SQ <'\n'> <'\t(cd bare && git archive --worktree-attributes HEAD) >bare-worktree.tar &&\n'> 
            <'\t(mkdir bare-worktree && cd bare-worktree && "$TAR" xf -) <bare-worktree.tar\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_missing>
      more_env: []
      words: [{<test_expect_missing>} {<'bare-worktree/ignored'>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_exists>
      more_env: []
      words: [{<test_expect_exists>} {<'bare-worktree/ignored-by-tree'>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_exists>
      more_env: []
      words: [{<test_expect_exists>} {<'bare-worktree/ignored-by-worktree'>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <export-subst>)}
        {
          (SQ <'\n'> <'\tgit log "--pretty=format:A${SUBSTFORMAT}O" HEAD >substfile1.expected &&\n'> 
            <'\ttest_cmp nosubstfile archive/nosubstfile &&\n'> <'\ttest_cmp substfile1.expected archive/substfile1 &&\n'> 
            <'\ttest_cmp substfile2 archive/substfile2\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_done>
      more_env: []
      words: [{<test_done>}]
      redirects: []
      do_fork: T
    )
  ]
)