bin/get-pick-list.sh: tweak the commit sha matching pattern
[mesa.git] / bin / get-pick-list.sh
index c1f2bf11ca535bee03404097305a606ade751d7a..05dd3820e1262852ba30b245799152650860d934 100755 (executable)
@@ -25,7 +25,7 @@ is_fixes_nomination()
 {
        fixes=`git show --pretty=medium -s $1 | tr -d "\n" | \
                sed -e 's/fixes:[[:space:]]*/\nfixes:/Ig' | \
-               grep "fixes:" | sed -e 's/\(fixes:[a-zA-Z0-9]*\).*$/\1/'`
+               grep -Eo 'fixes:[a-f0-9]{8,40}'`
 
        fixes_count=`echo "$fixes" | wc -l`
        if [ $fixes_count -eq 0 ] ; then