From: Yann Droneaud Date: Sun, 24 Mar 2013 21:06:06 +0000 (+0100) Subject: t4202: use test_config/test_unconfig to set/unset git config variables X-Git-Tag: v1.8.3-rc0~153^2~9 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/90e76b7029d02314b6f8f8470788874fc44fa621?hp=90e76b7029d02314b6f8f8470788874fc44fa621 t4202: use test_config/test_unconfig to set/unset git config variables Instead of using construct such as: test_when_finished "git config --unset " git config uses test_config The latter takes care of removing at the end of the test. Additionally, instead of git config "" or git config --unset uses test_unconfig The latter doesn't failed if is not defined. Tests are modified to assume correct (default) configuration at entry, and to reset the modified configuration variables at the end. Signed-off-by: Yann Droneaud Signed-off-by: Junio C Hamano ---