summaryrefslogtreecommitdiff
path: root/t/t9400-git-cvsserver-server.sh
diff options
context:
space:
mode:
authorBrian Gernhardt <benji@silverinsanity.com>2008-10-31 01:09:13 -0400
committerJunio C Hamano <gitster@pobox.com>2008-10-31 21:38:48 -0700
commit6ecfd91df5ec462aeded967c9ad21912c249f96e (patch)
treefaa7135734d9905f6cb430abe9561b5f771c0250 /t/t9400-git-cvsserver-server.sh
parentdf5e91fc2c95e051744ec9b9de66869d2b323037 (diff)
downloadgit-6ecfd91df5ec462aeded967c9ad21912c249f96e.tar.gz
Avoid using non-portable `echo -n` in tests.
Expecting echo to recognise -n is a BSDism. Using printf is far more portable. Discovered on OS X 10.5.5 in t4030-diff-textconv.sh and changed in all the test scripts. Signed-off-by: Brian Gernhardt <benji@silverinsanity.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9400-git-cvsserver-server.sh')
-rwxr-xr-xt/t9400-git-cvsserver-server.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t9400-git-cvsserver-server.sh b/t/t9400-git-cvsserver-server.sh
index c1850d2923..6a37f71d11 100755
--- a/t/t9400-git-cvsserver-server.sh
+++ b/t/t9400-git-cvsserver-server.sh
@@ -424,7 +424,7 @@ cd "$WORKDIR"
test_expect_success 'cvs update (-p)' '
touch really-empty &&
echo Line 1 > no-lf &&
- echo -n Line 2 >> no-lf &&
+ printf "Line 2" >> no-lf &&
git add really-empty no-lf &&
git commit -q -m "Update -p test" &&
git push gitcvs.git >/dev/null &&