diff options
author | Yann Droneaud <ydroneaud@opteya.com> | 2013-03-24 22:06:13 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-03-25 08:50:54 -0700 |
commit | 5d76ef25d9fedd46c9409af00953c7e8d31ce2ae (patch) | |
tree | 8671f1eaaf0442450e93e64ff9bcfa9e49725b3e | |
parent | c63659dd9638d756a07de13230703406a59b81a0 (diff) | |
download | git-5d76ef25d9fedd46c9409af00953c7e8d31ce2ae.tar.gz |
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>
-rwxr-xr-x | t/t9500-gitweb-standalone-no-errors.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/t/t9500-gitweb-standalone-no-errors.sh b/t/t9500-gitweb-standalone-no-errors.sh index 90bb6050c1..6783c14c1a 100755 --- a/t/t9500-gitweb-standalone-no-errors.sh +++ b/t/t9500-gitweb-standalone-no-errors.sh @@ -539,8 +539,7 @@ test_expect_success \ test_when_finished "GIT_COMMITTER_NAME=\"C O Mitter\"" && echo "ISO-8859-1" >> file && git add file && - git config i18n.commitencoding ISO-8859-1 && - test_when_finished "git config --unset i18n.commitencoding" && + test_config i18n.commitencoding ISO-8859-1 && git commit -F "$TEST_DIRECTORY"/t3900/ISO8859-1.txt && gitweb_run "p=.git;a=commit"' |