summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <Johannes.Schindelin@gmx.de>2007-03-22 21:05:28 -0400
committerLibravatar Junio C Hamano <junkio@cox.net>2007-03-28 14:54:30 -0700
commit75c962c99a9115d489549ad9b8419d3e37e85f02 (patch)
tree0d7c9b6ba42177636f3540516736d8f709b6c839 /t
parentgit-commit: "read-tree -m HEAD" is not the right way to read-tree quickly (diff)
downloadtgif-75c962c99a9115d489549ad9b8419d3e37e85f02.tar.xz
t4118: be nice to non-GNU sed
Elias Pipping: > I'm on a mac, hence /usr/bin/sed is not gnu sed, which makes > t4118 fail. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Ack'd-by: Elias Pipping <pipping@macports.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't')
-rwxr-xr-xt/t4118-apply-empty-context.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t4118-apply-empty-context.sh b/t/t4118-apply-empty-context.sh
index 7309422fe5..e78b1a1a79 100755
--- a/t/t4118-apply-empty-context.sh
+++ b/t/t4118-apply-empty-context.sh
@@ -23,7 +23,8 @@ test_expect_success setup '
cat file2 >file2.orig
git add file1 file2 &&
sed -e "/^B/d" <file1.orig >file1 &&
- sed -e "/^B/d" <file2.orig >file2 &&
+ sed -e "/^[BQ]/d" <file2.orig >file2 &&
+ echo Q | tr -d "\\012" >>file2 &&
cat file1 >file1.mods &&
cat file2 >file2.mods &&
git diff |