summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2010-03-31 20:18:46 +0200
committerJens Axboe <jens.axboe@oracle.com>2010-03-31 20:18:46 +0200
commitc44123ea0f423d665205247567814fddd825801b (patch)
treecc12daa6f24426c1f0fa0be77f0b47666df34061
parent9a6f9ab23712f79f9d21cb65f8865b6b0e152e49 (diff)
downloadag-c44123ea0f423d665205247567814fddd825801b.tar.gz
ag-c44123ea0f423d665205247567814fddd825801b.tar.bz2
Strip end-of-line space from author/committer
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rwxr-xr-xag-commit4
1 files changed, 2 insertions, 2 deletions
diff --git a/ag-commit b/ag-commit
index 258d16c..49c2f2d 100755
--- a/ag-commit
+++ b/ag-commit
@@ -15,11 +15,11 @@ COMMITTER_EMAIL="jens.axboe@oracle.com"
while true; do
case "$1" in
-a|--a-long)
- AUTHOR=`echo $2 | cut -d '<' -f 1`
+ AUTHOR=`echo $2 | cut -d '<' -f 1 | sed s/" $"//g`
AUTHOR_EMAIL=`echo $2 | cut -d '<' -f 2 | sed s/">"//g | sed 's/[ ^t]*$//'`
shift 2;;
-c|--c-long)
- COMMITTER=`echo $2 | cut -d '<' -f 1`
+ COMMITTER=`echo $2 | cut -d '<' -f 1 | sed s/" $"//g``
COMMITTER_EMAIL=`echo $2 | cut -d '<' -f 2 | sed s/">"//g | sed 's/[ ^t]*$//'`
shift 2;;
--) shift; break;;