diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-10-13 11:36:36 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-10-13 11:36:36 -0700 |
commit | 69ae92bda13dfbf0b7d169c57b9f2715af2a9d67 (patch) | |
tree | 660bdace0e4f761033c60cf230bb49ff00fc5eea /t/t5560-http-backend-noserver.sh | |
parent | bc979945305b87caf1e5975d30d42bafd88ad846 (diff) | |
download | git-69ae92bda13dfbf0b7d169c57b9f2715af2a9d67.tar.gz |
shell portability: no "export VAR=VAL"
It is more portable to say "VAR=VAL && export VAR" instead.
Noticed by Ævar.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5560-http-backend-noserver.sh')
-rwxr-xr-x | t/t5560-http-backend-noserver.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/t/t5560-http-backend-noserver.sh b/t/t5560-http-backend-noserver.sh index 44885b850c..94f9d2e8e0 100755 --- a/t/t5560-http-backend-noserver.sh +++ b/t/t5560-http-backend-noserver.sh @@ -14,7 +14,7 @@ run_backend() { } GET() { - export REQUEST_METHOD="GET" && + REQUEST_METHOD="GET" && export REQUEST_METHOD && run_backend "/repo.git/$1" && unset REQUEST_METHOD && if ! grep "Status" act.out >act @@ -26,8 +26,8 @@ GET() { } POST() { - export REQUEST_METHOD="POST" && - export CONTENT_TYPE="application/x-$1-request" && + REQUEST_METHOD="POST" && export REQUEST_METHOD && + CONTENT_TYPE="application/x-$1-request" && export CONTENT_TYPE && run_backend "/repo.git/$1" "$2" && unset REQUEST_METHOD && unset CONTENT_TYPE && @@ -46,7 +46,7 @@ log_div() { . "$TEST_DIRECTORY"/t556x_common expect_aliased() { - export REQUEST_METHOD="GET" && + REQUEST_METHOD="GET" && export REQUEST_METHOD && if test $1 = 0; then run_backend "$2" else |