From: Shawn O. Pearce Date: Wed, 07 Mar 2007 00:48:59 GMT Subject: [PATCH] make t8001 work on Mac OS X again Message-ID: <20070307004859.GA26262@spearce.org> In-Reply-To: <20070307001410.GA26050@spearce.org> From: Johannes Schindelin It has a broken sed which adds a newline to the last line, if it does not end with one. Signed-off-by: Johannes Schindelin Acked-by: Shawn O. Pearce --- From: Johannes Schindelin > Does this work for you? Yes. ;-) t/annotate-tests.sh | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/t/annotate-tests.sh b/t/annotate-tests.sh index 87403da..cacb273 100644 --- a/t/annotate-tests.sh +++ b/t/annotate-tests.sh @@ -114,7 +114,8 @@ test_expect_success \ test_expect_success \ 'some edit' \ 'mv file file.orig && - sed -e "s/^3A/99/" -e "/^1A/d" < file.orig > file && + sed -e "s/^3A/99/" -e "/^1A/d" -e "/^incomplete/d" < file.orig > file && + echo "incomplete" | tr -d "\\012" >>file && GIT_AUTHOR_NAME="D" git commit -a -m "edit"' test_expect_success \