t9500: 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 5d76ef25d9fedd46c9409af00953c7e8d31ce2ae
1 file changed +1 -2
t/t9500-gitweb-standalone-no-errors.sh
+1 -2
@@ -539,8 +539,7 @@ test_expect_success \
539 test_when_finished "GIT_COMMITTER_NAME=\"C O Mitter\"" &&
540 echo "ISO-8859-1" >> file &&
541 git add file &&
542 - git config i18n.commitencoding ISO-8859-1 &&
543 - test_when_finished "git config --unset i18n.commitencoding" &&
542 + test_config i18n.commitencoding ISO-8859-1 &&
543 git commit -F "$TEST_DIRECTORY"/t3900/ISO8859-1.txt &&
544 gitweb_run "p=.git;a=commit"'
545