t3400: use test_config to set/unset git config variables

Instead of using construct such as: test_when_finished "git config --unset <key>" git config <key> <value> uses test_config <key> <value> The latter takes care of removing <key> at the end of the test. Signed-off-by: Yann Droneaud <ydroneaud@opteya.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Yann Droneaud committed Mar 24, 2013 at 22:06 UTC 55adef06506b27c3f8d9e16c77bdf4e2e83678e9
1 file changed +1 -2
t/t3400-rebase.sh
+1 -2
@@ -138,8 +138,7 @@ test_expect_success 'rebase a single mode change' '
138 '
139
140 test_expect_success 'rebase is not broken by diff.renames' '
141 - git config diff.renames copies &&
142 - test_when_finished "git config --unset diff.renames" &&
141 + test_config diff.renames copies &&
142 git checkout filemove &&
143 GIT_TRACE=1 git rebase force-3way
144 '