diff options
author | Sasha Levin <sashal@kernel.org> | 2021-04-12 12:09:04 -0400 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2021-04-12 12:09:04 -0400 |
commit | ab09634f57a89093cf2d6225b1e8b90d0260f99a (patch) | |
tree | a374f99e635dd9cce784f872b35e20dfdfe401e9 | |
parent | 787205163a6298a67cc9df9dc397336d7638a51b (diff) | |
download | stable-tools-ab09634f57a89093cf2d6225b1e8b90d0260f99a.tar.gz |
Work with 5.x releases
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | common | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,7 +6,7 @@ function check_relevant { min=0 # Let's grab the commit that this commit fixes (if exists (based on the "Fixes:" tag)). - fixescmt=`git log -1 $cmt | grep -i "fixes:" | head -n 1 | sed -e 's/^[ \t]*//' | cut -f 2 -d ':' | sed -e 's/^[ \t]*//' | cut -f 1 -d ' '` + fixescmt=`git log -1 $cmt | grep -i "^ fixes:" | head -n 1 | sed -e 's/^[ \t]*//' | cut -f 2 -d ':' | sed -e 's/^[ \t]*//' | cut -f 1 -d ' '` # If this commit fixes anything, but the broken commit isn't in our branch we don't # need this commit either. @@ -32,7 +32,7 @@ function check_relevant { fi # Sanity check major version - if [ "$maj" != "2" ] && [ "$maj" != "3" ] && [ "$maj" != "4" ]; then + if [ "$maj" != "2" ] && [ "$maj" != "3" ] && [ "$maj" != "4" ] && [ "$maj" != "5" ]; then return 1 fi |