| test_description='check environment showed to remote side of transports' |
| test_expect_success 'set up "remote" push situation' ' |
| git config push.default current && |
| test_expect_success 'set up fake ssh' ' |
| cd \"\$TRASH_DIRECTORY\" && |
| export GIT_SSH_COMMAND && |
| # due to receive.denyCurrentBranch=true |
| test_expect_success 'confirm default push fails' ' |
| test_must_fail git push remote |
| test_expect_success 'config does not travel over same-machine push' ' |
| test_must_fail git -c receive.denyCurrentBranch=false push remote |
| test_expect_success 'config does not travel over ssh push' ' |
| test_must_fail git -c receive.denyCurrentBranch=false push host:remote |