]> granicus.if.org Git - git/commitdiff
t5562: avoid non-portable "export FOO=bar" construct
authorRamsay Jones <ramsay@ramsayjones.plus.com>
Sat, 28 Jul 2018 22:51:28 +0000 (23:51 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Jul 2018 18:25:40 +0000 (11:25 -0700)
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>
t/t5562-http-backend-content-length.sh

index 057dcb85d66a412126ed32a40687b80b33476168..43570ce12004d4fd95c85276cdac8f52627c73d9 100755 (executable)
@@ -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 &&