- # For each one try to extract the tag
- fixes_count=`git show $sha | grep -i "fixes:" | wc -l`
- if [ "x$fixes_count" != x1 ] ; then
- echo WARNING: Commit $sha has more than one Fixes tag
- fi
- fixes=`git show $sha | grep -i "fixes:" | head -n 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 ' '`
-
- # Bail out if we cannot find suitable id.
- # Any specific validation the $id is valid and not some junk, is
- # implied with the follow up code
- if [ "x$id" = x ] ; then