summaryrefslogtreecommitdiff
path: root/t/t5560-http-backend-noserver.sh
diff options
context:
space:
mode:
authorMark Levedahl <mlevedahl@gmail.com>2013-07-18 17:44:57 -0400
committerJunio C Hamano <gitster@pobox.com>2013-07-18 16:44:40 -0700
commit97669eed109f5dea7dffe771d8f6aba4acf84b27 (patch)
treec9df4fe8aa6a4e9e49a5ef5a5716109051da30f2 /t/t5560-http-backend-noserver.sh
parentf59bebb78edb26e4f66c2754bc4d168c5d4ebb4a (diff)
downloadgit-97669eed109f5dea7dffe771d8f6aba4acf84b27.tar.gz
test-lib.sh - define and use GREP_STRIPS_CRml/avoid-using-grep-on-crlf-files
Define a common macro for grep needing -U to allow tests to not need to inquire of specific platforms needing this option. Change t3032 and t5560 to use this rather than testing explicitly for mingw. This fixes these two tests on Cygwin. Signed-off-by: Mark Levedahl <mlevedahl@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5560-http-backend-noserver.sh')
-rwxr-xr-xt/t5560-http-backend-noserver.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5560-http-backend-noserver.sh b/t/t5560-http-backend-noserver.sh
index ef98d95e00..9be9ae3436 100755
--- a/t/t5560-http-backend-noserver.sh
+++ b/t/t5560-http-backend-noserver.sh
@@ -5,7 +5,7 @@ test_description='test git-http-backend-noserver'
HTTPD_DOCUMENT_ROOT_PATH="$TRASH_DIRECTORY"
-test_have_prereq MINGW && export GREP_OPTIONS=-U
+test_have_prereq GREP_STRIPS_CR && export GREP_OPTIONS=-U
run_backend() {
echo "$2" |