Skip to content

Commit 5d76ef2

Browse files
ydroneaudgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c63659d commit 5d76ef2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

t/t9500-gitweb-standalone-no-errors.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,7 @@ test_expect_success \
539539
test_when_finished "GIT_COMMITTER_NAME=\"C O Mitter\"" &&
540540
echo "ISO-8859-1" >> file &&
541541
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 &&
544543
git commit -F "$TEST_DIRECTORY"/t3900/ISO8859-1.txt &&
545544
gitweb_run "p=.git;a=commit"'
546545

0 commit comments

Comments
 (0)