summaryrefslogtreecommitdiff
path: root/t/t5562-http-backend-content-length.sh
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsayjones.plus.com>2018-07-28 22:51:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-30 18:25:40 (GMT)
commiteebfe409628e337e283d57a870f52ae0d0e0de34 (patch)
treea9aa41c11515fb7c55f1568b12b2ac4762f3b2de /t/t5562-http-backend-content-length.sh
parent6c213e863aeb0af078bf82deefb22da20427c2ab (diff)
downloadgit-eebfe409628e337e283d57a870f52ae0d0e0de34.zip
git-eebfe409628e337e283d57a870f52ae0d0e0de34.tar.gz
git-eebfe409628e337e283d57a870f52ae0d0e0de34.tar.bz2
t5562: avoid non-portable "export FOO=bar" construct
Commit 6c213e863a ("http-backend: respect CONTENT_LENGTH for receive-pack", 2018-07-27) adds a test which uses the non-portable export construct. Replace it with "FOO=bar && export FOO" instead. Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5562-http-backend-content-length.sh')
-rwxr-xr-xt/t5562-http-backend-content-length.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t5562-http-backend-content-length.sh b/t/t5562-http-backend-content-length.sh
index 057dcb8..43570ce 100755
--- a/t/t5562-http-backend-content-length.sh
+++ b/t/t5562-http-backend-content-length.sh
@@ -45,7 +45,8 @@ ssize_b100dots() {
}
test_expect_success 'setup' '
- export HTTP_CONTENT_ENCODING="identity" &&
+ HTTP_CONTENT_ENCODING="identity" &&
+ export HTTP_CONTENT_ENCODING &&
git config http.receivepack true &&
test_commit c0 &&
test_commit c1 &&