You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
520 B
31 lines
520 B
#!/bin/sh |
|
# |
|
# Copyright (c) 2019 Linaro Limited |
|
# |
|
# SPDX-License-Identifier: Apache-2.0 |
|
# |
|
|
|
remote=$1 |
|
url=$2 |
|
local_ref=$3 |
|
local_sha=$4 |
|
remote_ref=$5 |
|
remote_sha=$6 |
|
z40=0000000000000000000000000000000000000000 |
|
|
|
set -e exec |
|
|
|
echo "Run push " |
|
|
|
if [ "$local_sha" = $z40 ] |
|
then |
|
# Handle delete |
|
: |
|
else |
|
# At each (forced) push, examine all commits since $remote/main |
|
base_commit=`git rev-parse $remote/main` |
|
range="$base_commit..$local_sha" |
|
|
|
echo "Perform check patch" |
|
${ZEPHYR_BASE}/scripts/checkpatch.pl --git $range |
|
fi
|
|
|