summaryrefslogtreecommitdiff
path: root/utils/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'utils/hooks')
-rwxr-xr-xutils/hooks/pre-push7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/hooks/pre-push b/utils/hooks/pre-push
index 2417d379..d13e2c3b 100755
--- a/utils/hooks/pre-push
+++ b/utils/hooks/pre-push
@@ -63,6 +63,13 @@ do
echo >&2 "No Reviewed-by or Acked-by in commit $commit"
errors=$((errors+1))
fi
+
+ # 4. The commit message shall not contain a Change-Id.
+ if echo "$msg" | grep -q '^Change-Id:'
+ then
+ echo >&2 "Found Change-Id in commit $commit"
+ errors=$((errors+1))
+ fi
done
if [ $errors != 0 ]