(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 <'push from/to a shallow clone'>)}
        )
      ]
      redirects: []
    )
    (command.Simple
      blame_tok: <.>
      more_env: []
      words: [{<.>} {<'./test-lib.sh'>}]
      redirects: []
      do_fork: T
    )
    (command.ShFunction
      name_tok: <commit>
      name: commit
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.AndOr
              children: [
                (command.Simple
                  blame_tok: <echo>
                  more_env: []
                  words: [{<echo>} {(DQ ($ Id.VSub_Number 1))}]
                  redirects: [(Redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<tracked>})]
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <git>
                  more_env: []
                  words: [{<git>} {<add>} {<tracked>}]
                  redirects: []
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <git>
                  more_env: []
                  words: [{<git>} {<commit>} {<-m>} {(DQ ($ Id.VSub_Number 1))}]
                  redirects: []
                  do_fork: T
                )
              ]
              ops: [<Id.Op_DAmp _> <Id.Op_DAmp _>]
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <setup>)}
        {
          (SQ <'\n'> <'\tgit config --global transfer.fsckObjects true &&\n'> <'\tcommit 1 &&\n'> 
            <'\tcommit 2 &&\n'> <'\tcommit 3 &&\n'> <'\tcommit 4 &&\n'> <'\tgit clone . full &&\n'> <'\t(\n'> 
            <'\tgit init full-abc &&\n'> <'\tcd full-abc &&\n'> <'\tcommit a &&\n'> <'\tcommit b &&\n'> <'\tcommit c\n'> <'\t) &&\n'> 
            <'\tgit clone --no-local --depth=2 .git shallow &&\n'> <'\tgit --git-dir=shallow/.git log --format=%s >actual &&\n'> <'\tcat <<EOF >expect &&\n'> <'4\n'> 
            <'3\n'> <'EOF\n'> <'\ttest_cmp expect actual &&\n'> 
            <'\tgit clone --no-local --depth=2 full-abc/.git shallow2 &&\n'> <'\tgit --git-dir=shallow2/.git log --format=%s >actual &&\n'> <'\tcat <<EOF >expect &&\n'> <'c\n'> 
            <'b\n'> <'EOF\n'> <'\ttest_cmp expect actual\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'push from shallow clone'>)}
        {
          (SQ <'\n'> <'\t(\n'> <'\tcd shallow &&\n'> <'\tcommit 5 &&\n'> 
            <'\tgit push ../.git +master:refs/remotes/shallow/master\n'> <'\t) &&\n'> <'\tgit log --format=%s shallow/master >actual &&\n'> <'\tgit fsck &&\n'> 
            <'\tcat <<EOF >expect &&\n'> <'5\n'> <'4\n'> <'3\n'> <'2\n'> <'1\n'> <'EOF\n'> <'\ttest_cmp expect actual\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'push from shallow clone, with grafted roots'>)}
        {
          (SQ <'\n'> <'\t(\n'> <'\tcd shallow2 &&\n'> 
            <'\ttest_must_fail git push ../.git +master:refs/remotes/shallow2/master 2>err &&\n'> <'\tgrep "shallow2/master.*shallow update not allowed" err\n'> <'\t) &&\n'> 
            <'\ttest_must_fail git rev-parse shallow2/master &&\n'> <'\tgit fsck\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'add new shallow root with receive.updateshallow on'>)}
        {
          (SQ <'\n'> <'\ttest_config receive.shallowupdate true &&\n'> <'\t(\n'> <'\tcd shallow2 &&\n'> 
            <'\tgit push ../.git +master:refs/remotes/shallow2/master\n'> <'\t) &&\n'> <'\tgit log --format=%s shallow2/master >actual &&\n'> <'\tgit fsck &&\n'> 
            <'\tcat <<EOF >expect &&\n'> <'c\n'> <'b\n'> <'EOF\n'> <'\ttest_cmp expect actual\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'push from shallow to shallow'>)}
        {
          (SQ <'\n'> <'\t(\n'> <'\tcd shallow &&\n'> 
            <'\tgit --git-dir=../shallow2/.git config receive.shallowupdate true &&\n'> <'\tgit push ../shallow2/.git +master:refs/remotes/shallow/master &&\n'> 
            <'\tgit --git-dir=../shallow2/.git config receive.shallowupdate false\n'> <'\t) &&\n'> <'\t(\n'> <'\tcd shallow2 &&\n'> <'\tgit log --format=%s shallow/master >actual &&\n'> 
            <'\tgit fsck &&\n'> <'\tcat <<EOF >expect &&\n'> <'5\n'> <'4\n'> <'3\n'> <'EOF\n'> <'\ttest_cmp expect actual\n'> <'\t)\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'push from full to shallow'>)}
        {
          (SQ <'\n'> 
            <'\t! git --git-dir=shallow2/.git cat-file blob $(echo 1|git hash-object --stdin) &&\n'> <'\tcommit 1 &&\n'> <'\tgit push shallow2/.git +master:refs/remotes/top/master &&\n'> <'\t(\n'> 
            <'\tcd shallow2 &&\n'> <'\tgit log --format=%s top/master >actual &&\n'> <'\tgit fsck &&\n'> <'\tcat <<EOF >expect &&\n'> 
            <'1\n'> <'4\n'> <'3\n'> <'EOF\n'> <'\ttest_cmp expect actual &&\n'> 
            <'\tgit cat-file blob $(echo 1|git hash-object --stdin) >/dev/null\n'> <'\t)\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_done>
      more_env: []
      words: [{<test_done>}]
      redirects: []
      do_fork: T
    )
  ]
)