Lines Matching +full:commit +full:- +full:message
3 # git pre-push hook to detect whether a developer is attempting to push
4 # non-public commits to a public repository.
10 if [[ "$url" = "sso://googleplex-android/platform/external/drm_hwcomposer" ]] ||
22 commits=$(git rev-list $local_sha --not --remotes=$remote)
24 commits=$(git rev-list $remote_sha..$local_sha)
27 # Check each commit message for the prohibited prefix.
28 for commit in $commits; do
29 # Get the commit message.
30 message=$(git log -1 --pretty=%B $commit)
32 # Check if the commit message starts with "ANDROID:"
33 if [[ "$message" == "ANDROID"* ]] ||
34 [[ "$message" == "INTERNAL"* ]] ||
35 [[ "$message" == "DO NOT MERGE"* ]]; then
36 echo "Error: Commit message starts with downstream tag:"
37 echo "$message"