diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2012-07-31 15:47:03 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2012-07-31 15:47:03 -0400 |
commit | 6b333fb44dcf21434bac252b89cc0e899f8a0abd (patch) | |
tree | 5655a3e010e50854f41c3d9696bb7e8112e2a3cc | |
parent | 1cb4f1336283947ef8f6421fabd25cdda6991cf7 (diff) | |
download | longterm-queue-2.6.34-6b333fb44dcf21434bac252b89cc0e899f8a0abd.tar.gz |
reviewbot: fix detection of upstream commit ID
Use head -n1 so we don't get any strings of random quoted
stuff from the remainder of the long log muddying the waters.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
-rwxr-xr-x | scripts/reviewbot | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/reviewbot b/scripts/reviewbot index 1b42251..72f27ed 100755 --- a/scripts/reviewbot +++ b/scripts/reviewbot @@ -29,7 +29,7 @@ if [ ! -f "$1" ]; then exit 1 fi -PARENT=`cat $1|grep ommit|grep 'pstream\|herry'|sed 's/.* \([0-9a-f]\+\).*/\1/'` +PARENT=`cat $1|grep ommit|grep 'pstream\|herry'|sed 's/.* \([0-9a-f]\+\).*/\1/'|head -n1` LEN=`echo $PARENT|wc -c` # Check for garbage strings that arent SHA. if [ "$LEN" != "41" ]; then |