From: Yann Droneaud Date: Sun, 24 Mar 2013 21:06:03 +0000 (+0100) Subject: t3400: use test_config to set/unset git config variables X-Git-Tag: v1.8.3-rc0~153^2~12 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/55adef06506b27c3f8d9e16c77bdf4e2e83678e9?ds=sidebyside t3400: use test_config 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. Signed-off-by: Yann Droneaud Signed-off-by: Junio C Hamano --- diff --git a/t/t3400-rebase.sh b/t/t3400-rebase.sh index 1de0ebda25..f6cc102657 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 '