(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 <'Test the post-merge hook.'>)}
        )
      ]
      redirects: []
    )
    (command.Simple
      blame_tok: <.>
      more_env: []
      words: [{<.>} {<'./test-lib.sh'>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {<setup>}
        {
          (SQ <'\n'> <'\techo Data for commit0. >a &&\n'> <'\tgit update-index --add a &&\n'> 
            <'\ttree0=$(git write-tree) &&\n'> <'\tcommit0=$(echo setup | git commit-tree $tree0) &&\n'> <'\techo Changed data for commit1. >a &&\n'> 
            <'\tgit update-index a &&\n'> <'\ttree1=$(git write-tree) &&\n'> 
            <'\tcommit1=$(echo modify | git commit-tree $tree1 -p $commit0) &&\n'> <'        git update-ref refs/heads/master $commit0 &&\n'> <'\tgit clone ./. clone1 &&\n'> 
            <'\tGIT_DIR=clone1/.git git update-index --add a &&\n'> <'\tgit clone ./. clone2 &&\n'> <'\tGIT_DIR=clone2/.git git update-index --add a\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.ForEach
      keyword: <Id.KW_For for>
      iter_names: [clone]
      iterable: (for_iter.Words words:[{<1>} {<2>}])
      semi_tok: <Id.Op_Semi _>
      body: 
        (command.DoGroup
          left: <Id.KW_Do do>
          children: [
            (command.Simple
              blame_tok: <cat>
              more_env: []
              words: [{<cat>}]
              redirects: [
                (Redir
                  op: <Id.Redir_Great '>'>
                  loc: (redir_loc.Fd fd:1)
                  arg: {<clone> (${ Id.VSub_Name clone) <'/.git/hooks/post-merge'>}
                )
                (Redir
                  op: <Id.Redir_DLess '<<'>
                  loc: (redir_loc.Fd fd:0)
                  arg: 
                    (redir_param.HereDoc
                      here_begin: {(SQ <EOF>)}
                      here_end_tok: <Id.Undefined_Tok ''>
                      stdin_parts: [<'#!/bin/sh\n'> <'echo $@ >> $GIT_DIR/post-merge.args\n'>]
                    )
                )
              ]
              do_fork: T
            )
            (command.Simple
              blame_tok: <chmod>
              more_env: []
              words: [
                {<chmod>}
                {<u> <Id.Lit_Other '+'> <x>}
                {<clone> (${ Id.VSub_Name clone) <'/.git/hooks/post-merge'>}
              ]
              redirects: []
              do_fork: T
            )
          ]
          right: <Id.KW_Done done>
        )
      redirects: []
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'post-merge does not run for up-to-date '>)}
        {
          (SQ <'\n'> <'        GIT_DIR=clone1/.git git merge $commit0 &&\n'> 
            <'\t! test -f clone1/.git/post-merge.args\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'post-merge runs as expected '>)}
        {
          (SQ <'\n'> <'        GIT_DIR=clone1/.git git merge $commit1 &&\n'> 
            <'\ttest -e clone1/.git/post-merge.args\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'post-merge from normal merge receives the right argument '>)}
        {(SQ <'\n'> <'        grep 0 clone1/.git/post-merge.args\n'>)}
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'post-merge from squash merge runs as expected '>)}
        {
          (SQ <'\n'> <'        GIT_DIR=clone2/.git git merge --squash $commit1 &&\n'> 
            <'\ttest -e clone2/.git/post-merge.args\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_expect_success>
      more_env: []
      words: [
        {<test_expect_success>}
        {(SQ <'post-merge from squash merge receives the right argument '>)}
        {(SQ <'\n'> <'        grep 1 clone2/.git/post-merge.args\n'>)}
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <test_done>
      more_env: []
      words: [{<test_done>}]
      redirects: []
      do_fork: T
    )
  ]
)