t5541: 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 8677b777a57e1d843d4aef2d5a12f3cd9ccb7609
1 file changed +1 -2
t/t5541-http-push.sh
+1 -2
@@ -181,8 +181,7 @@ test_expect_success 'push (chunked)' '
181 git checkout master &&
182 test_commit commit path3 &&
183 HEAD=$(git rev-parse --verify HEAD) &&
184 - git config http.postbuffer 4 &&
185 - test_when_finished "git config --unset http.postbuffer" &&
184 + test_config http.postbuffer 4 &&
185 git push -v -v origin $BRANCH 2>err &&
186 grep "POST git-receive-pack (chunked)" err &&
187 (cd "$HTTPD_DOCUMENT_ROOT_PATH"/test_repo.git &&