[PATCH] make t8001 work on Mac OS X again
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Mar 7, 2007, 00:48 UTC
- Message-ID
- <20070307004859.GA26262@spearce.org>
- In-Reply-To
- <20070307001410.GA26050@spearce.org>
From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
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 <Johannes.Schindelin@gmx.de> Acked-by: Shawn O. Pearce <spearce@spearce.org> ---
From: Johannes Schindelin <Johannes.Schindelin@gmx.de> > 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 \