[PATCH] git-am.sh: Remove option -n from tail
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
---
git-am.sh | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/git-am.sh b/git-am.sh
index b02ae6a..09a991c 100755
--- a/git-am.sh
+++ b/git-am.sh
@@ -2,6 +2,8 @@
#
# Copyright (c) 2005, 2006 Junio C Hamano
+TAIL="tail"
+
USAGE='[--signoff] [--dotest=<dir>] [--keep] [--utf8 | --no-utf8]
[--3way] [--interactive] [--binary]
[--whitespace=<option>] [-C<n>] [-p<n>]
@@ -321,7 +323,7 @@ do
LAST_SIGNED_OFF_BY=`
sed -ne '/^Signed-off-by: /p' \
"$dotest/msg-clean" |
- tail -n 1
+ $TAIL 1
`
ADD_SIGNOFF=`
test "$LAST_SIGNED_OFF_BY" = "$SIGNOFF" || {
--
1.5.3.2.81.g17ed