[PATCH 5/8] t9901: fix line-ending dependency on windows
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
---
t/t9901-git-web--browse.sh | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/t/t9901-git-web--browse.sh b/t/t9901-git-web--browse.sh
index 7906e5d..1185b42 100755
--- a/t/t9901-git-web--browse.sh
+++ b/t/t9901-git-web--browse.sh
@@ -12,7 +12,7 @@ test_expect_success \
echo http://example.com/foo\&bar >expect &&
git config browser.custom.cmd echo &&
git web--browse --browser=custom \
- http://example.com/foo\&bar >actual &&
+ http://example.com/foo\&bar | tr -d "\r" >actual &&
test_cmp expect actual
'
@@ -21,7 +21,7 @@ test_expect_success \
echo http://example.com/foo\;bar >expect &&
git config browser.custom.cmd echo &&
git web--browse --browser=custom \
- http://example.com/foo\;bar >actual &&
+ http://example.com/foo\;bar | tr -d "\r" >actual &&
test_cmp expect actual
'
@@ -30,7 +30,7 @@ test_expect_success \
echo http://example.com/foo#bar >expect &&
git config browser.custom.cmd echo &&
git web--browse --browser=custom \
- http://example.com/foo#bar >actual &&
+ http://example.com/foo#bar | tr -d "\r" >actual &&
test_cmp expect actual
'
@@ -44,7 +44,7 @@ test_expect_success \
chmod +x "fake browser" &&
git config browser.w3m.path "`pwd`/fake browser" &&
git web--browse --browser=w3m \
- http://example.com/foo >actual &&
+ http://example.com/foo | tr -d "\r" >actual &&
test_cmp expect actual
'
@@ -59,7 +59,7 @@ test_expect_success \
}
f" &&
git web--browse --browser=custom \
- http://example.com/foo >actual &&
+ http://example.com/foo | tr -d "\r" >actual &&
test_cmp expect actual
'
--
1.7.7.1.gbba15