From ef4bc8d101d1958fc50c1cc84b607a0edd7f621f Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 2 Oct 2020 03:42:12 +0300 Subject: utils: hooks: pre-push: Accept Acked-by in addition to Reviewed-by MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allow pushing commits that have no Reviewed-by tag but have at least one Acked-by tag. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham Reviewed-by: Niklas Söderlund --- utils/hooks/pre-push | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils') 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 -- cgit v1.2.1