summaryrefslogtreecommitdiffstats
path: root/t/t5560-http-backend-noserver.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-05-23 20:19:34 +0200
committerJunio C Hamano <gitster@pobox.com>2014-05-24 00:32:54 +0200
commitc1cebcf4314a8f18ec06e6d10ce39f49a59076ec (patch)
tree8ed99a6f3cd18030d510aec840506506f76ce399 /t/t5560-http-backend-noserver.sh
parentscripts: "export VAR=VALUE" construct is not portable (diff)
downloadgit-c1cebcf4314a8f18ec06e6d10ce39f49a59076ec.tar.xz
git-c1cebcf4314a8f18ec06e6d10ce39f49a59076ec.zip
scripts: more "export VAR=VALUE" fixes
Found by git grep '[^-]export [^&]*=' -- \*.sh Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rwxr-xr-xt/t5560-http-backend-noserver.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/t5560-http-backend-noserver.sh b/t/t5560-http-backend-noserver.sh
index 9be9ae3436..1e25128ad3 100755
--- a/t/t5560-http-backend-noserver.sh
+++ b/t/t5560-http-backend-noserver.sh
@@ -5,7 +5,11 @@ test_description='test git-http-backend-noserver'
HTTPD_DOCUMENT_ROOT_PATH="$TRASH_DIRECTORY"
-test_have_prereq GREP_STRIPS_CR && export GREP_OPTIONS=-U
+if test_have_prereq GREP_STRIPS_CR
+then
+ GREP_OPTIONS=-U
+ export GREP_OPTIONS
+fi
run_backend() {
echo "$2" |