From: Yann Droneaud Date: Sun, 24 Mar 2013 21:06:03 GMT Subject: [PATCH 04/15] t3400: use test_config to set/unset git config variables Message-ID: <00788763fe791a5b2bc181f4dfae9247f57f3cb4.1364158574.git.ydroneaud@opteya.com> In-Reply-To: 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. Signed-off-by: Yann Droneaud --- t/t3400-rebase.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/t/t3400-rebase.sh b/t/t3400-rebase.sh index 1de0ebd..f6cc102 100755 --- a/t/t3400-rebase.sh +++ b/t/t3400-rebase.sh @@ -138,8 +138,7 @@ test_expect_success 'rebase a single mode change' ' ' test_expect_success 'rebase is not broken by diff.renames' ' - git config diff.renames copies && - test_when_finished "git config --unset diff.renames" && + test_config diff.renames copies && git checkout filemove && GIT_TRACE=1 git rebase force-3way ' -- 1.7.11.7