]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t4118: be nice to non-GNU sed
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Fri, 23 Mar 2007 01:05:28 +0000 (21:05 -0400)
committerJunio C Hamano <junkio@cox.net>
Wed, 28 Mar 2007 21:54:30 +0000 (14:54 -0700)
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>
t/t4118-apply-empty-context.sh

index 7309422fe520ee5f459713da85b255233c0de9a5..e78b1a1a79069c70f23f4f71c9aa7305e128fd3f 100755 (executable)
@@ -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 |