diff options
author | Andres Gomez <agomez@igalia.com> | 2017-05-13 03:11:07 +0300 |
---|---|---|
committer | Andres Gomez <agomez@igalia.com> | 2017-06-15 15:53:21 +0300 |
commit | f1590363c9abdda1db30a077257c93888a35972b (patch) | |
tree | c6caaec918030bdefb1cf41a8a333fd6149c886a /bin | |
parent | e8df89d2c511d6c787636e71ec60c35385ae7041 (diff) |
bin/get-fixes-pick-list.sh: parse just the commit message
We were parsing the whole diff, although the candidates were
identified only by the commit message.
Now, we only use the commit message for parsing.
Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Emil Velikov <emli.velikov@collabora.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/get-fixes-pick-list.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/get-fixes-pick-list.sh b/bin/get-fixes-pick-list.sh index 81b78adc9c..f9afcc49ce 100755 --- a/bin/get-fixes-pick-list.sh +++ b/bin/get-fixes-pick-list.sh @@ -37,10 +37,10 @@ do fi # For each one try to extract the tag - fixes_count=`git show $sha | grep -i "fixes:" | wc -l` + fixes_count=`git show -s $sha | grep -i "fixes:" | wc -l` warn=`(test $fixes_count -gt 1 && echo $fixes_count) || echo 0` while [ $fixes_count -gt 0 ] ; do - fixes=`git show $sha | grep -i "fixes:" | tail -n $fixes_count` + fixes=`git show -s $sha | grep -i "fixes:" | tail -n $fixes_count` fixes_count=$(($fixes_count-1)) # The following sed/cut combination is borrowed from GregKH id=`echo ${fixes} | sed -e 's/^[ \t]*//' | cut -f 2 -d ':' | sed -e 's/^[ \t]*//' | cut -f 1 -d ' '` |