summaryrefslogtreecommitdiff
path: root/utils/hooks
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-10-02 03:42:12 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-10-02 15:30:14 +0300
commitef4bc8d101d1958fc50c1cc84b607a0edd7f621f (patch)
treeaefe051d715601b2287ebcdcbf6adf05b50d554a /utils/hooks
parent39d56fcfa0206f373bd169c408d6501f3551d124 (diff)
utils: hooks: pre-push: Accept Acked-by in addition to Reviewed-by
Allow pushing commits that have no Reviewed-by tag but have at least one Acked-by tag. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'utils/hooks')
-rwxr-xr-xutils/hooks/pre-push6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/hooks/pre-push b/utils/hooks/pre-push
index 5dc8adda..2417d379 100755
--- a/utils/hooks/pre-push
+++ b/utils/hooks/pre-push
@@ -57,10 +57,10 @@ do
errors=$((errors+1))
fi
- # 3. A Reviewed-by is required.
- if ! echo "$msg" | grep -q '^Reviewed-by: '
+ # 3. A Reviewed-by or Acked-by is required.
+ if ! echo "$msg" | grep -q '^\(Reviewed\|Acked\)-by: '
then
- echo >&2 "No Reviewed-by in commit $commit"
+ echo >&2 "No Reviewed-by or Acked-by in commit $commit"
errors=$((errors+1))
fi
done