(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'test_description='> name:test_description) op: assign_op.Equal rhs: {(SQ <'check environment showed to remote side of transports'>)} spids: [4] ) ] redirects: [] ) (C {<.>} {<'./test-lib.sh'>}) (C {<test_expect_success>} {(SQ <'set up "remote" push situation'>)} { (SQ <'\n'> <'\ttest_commit one &&\n'> <'\tgit config push.default current &&\n'> <'\tgit init remote\n'> ) } ) (C {<test_expect_success>} {(SQ <'set up fake ssh'>)} { (SQ <'\n'> <'\tGIT_SSH_COMMAND="f() {\n'> <'\t\tcd \\"\\$TRASH_DIRECTORY\\" &&\n'> <'\t\teval \\"\\$2\\"\n'> <'\t}; f" &&\n'> <'\texport GIT_SSH_COMMAND &&\n'> <'\texport TRASH_DIRECTORY\n'> ) } ) (C {<test_expect_success>} {(SQ <'confirm default push fails'>)} {(SQ <'\n'> <'\ttest_must_fail git push remote\n'>)} ) (C {<test_expect_success>} {(SQ <'config does not travel over same-machine push'>)} {(SQ <'\n'> <'\ttest_must_fail git -c receive.denyCurrentBranch=false push remote\n'>)} ) (C {<test_expect_success>} {(SQ <'config does not travel over ssh push'>)} {(SQ <'\n'> <'\ttest_must_fail git -c receive.denyCurrentBranch=false push host:remote\n'>)} ) (C {<test_done>}) ] )