aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSasha Levin <sashal@kernel.org>2021-04-12 12:09:04 -0400
committerSasha Levin <sashal@kernel.org>2021-04-12 12:09:04 -0400
commitab09634f57a89093cf2d6225b1e8b90d0260f99a (patch)
treea374f99e635dd9cce784f872b35e20dfdfe401e9
parent787205163a6298a67cc9df9dc397336d7638a51b (diff)
downloadstable-tools-ab09634f57a89093cf2d6225b1e8b90d0260f99a.tar.gz
Work with 5.x releases
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--common4
1 files changed, 2 insertions, 2 deletions
diff --git a/common b/common
index bdb6044..cd7b2dd 100644
--- a/common
+++ b/common
@@ -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