3 test_description
='check environment showed to remote side of transports'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 test_expect_success
'set up "remote" push situation' '
10 git config push.default current &&
14 test_expect_success
'set up fake ssh' '
15 GIT_SSH_COMMAND="f() {
16 cd \"\$TRASH_DIRECTORY\" &&
19 export GIT_SSH_COMMAND &&
20 export TRASH_DIRECTORY
23 # due to receive.denyCurrentBranch=true
24 test_expect_success
'confirm default push fails' '
25 test_must_fail git push remote
28 test_expect_success
'config does not travel over same-machine push' '
29 test_must_fail git -c receive.denyCurrentBranch=false push remote
32 test_expect_success
'config does not travel over ssh push' '
33 test_must_fail git -c receive.denyCurrentBranch=false push host:remote