From: Yann Droneaud Date: Sun, 24 Mar 2013 21:06:08 +0000 (+0100) Subject: t5541: use test_config to set/unset git config variables X-Git-Tag: v1.8.3-rc0~153^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8677b777a57e1d843d4aef2d5a12f3cd9ccb7609;p=git t5541: use test_config to set/unset git config variables Instead of using construct such as: test_when_finished "git config --unset " git config uses test_config The latter takes care of removing at the end of the test. Signed-off-by: Yann Droneaud Signed-off-by: Junio C Hamano --- diff --git a/t/t5541-http-push.sh b/t/t5541-http-push.sh index 4b4b4a604f..4086f02bc1 100755 --- a/t/t5541-http-push.sh +++ b/t/t5541-http-push.sh @@ -181,8 +181,7 @@ test_expect_success 'push (chunked)' ' git checkout master && test_commit commit path3 && HEAD=$(git rev-parse --verify HEAD) && - git config http.postbuffer 4 && - test_when_finished "git config --unset http.postbuffer" && + test_config http.postbuffer 4 && git push -v -v origin $BRANCH 2>err && grep "POST git-receive-pack (chunked)" err && (cd "$HTTPD_DOCUMENT_ROOT_PATH"/test_repo.git &&