push test: use test_config when appropriate
commit3c695523384855dffba49aec7f0a77e555ced822
authorJonathan Nieder <jrnieder@gmail.com>
Mon, 18 Mar 2013 23:12:11 +0000 (18 16:12 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Mar 2013 18:07:25 +0000 (19 11:07 -0700)
tree85c410bd97b169c319a0889f449d8499910d9786
parent239222f587ed06f96d90dd71c66d80a2b1e3dc9f
push test: use test_config when appropriate

Configuration from test_config does not last beyond the end of the
current test assertion, making each test easier to think about in
isolation.

This changes the meaning of some of the tests.  For example, currently
"push with insteadOf" passes even if the line setting
"url.$TRASH.pushInsteadOf" is dropped because an url.$TRASH.insteadOf
setting leaks in from a previous test.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5516-fetch-push.sh