(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:test_description) op: Equal rhs: {(SQ <"check environment showed to remote side of transports">)} spids: [4] ) ] spids: [4] ) (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)}) ] )