summaryrefslogtreecommitdiff
path: root/t/t5541-http-push.sh
diff options
context:
space:
mode:
authorYann Droneaud <ydroneaud@opteya.com>2013-03-24 21:06:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-03-25 15:50:53 (GMT)
commit8677b777a57e1d843d4aef2d5a12f3cd9ccb7609 (patch)
treeb8468db306bc82208cd1e8fbf0cf1fc8d2e22676 /t/t5541-http-push.sh
parent9d6aa64dc32b5f1b87c480eaffb8b4bb9aa10c64 (diff)
downloadgit-8677b777a57e1d843d4aef2d5a12f3cd9ccb7609.zip
git-8677b777a57e1d843d4aef2d5a12f3cd9ccb7609.tar.gz
git-8677b777a57e1d843d4aef2d5a12f3cd9ccb7609.tar.bz2
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>
Diffstat (limited to 't/t5541-http-push.sh')
-rwxr-xr-xt/t5541-http-push.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/t/t5541-http-push.sh b/t/t5541-http-push.sh
index 4b4b4a6..4086f02 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 &&