aboutsummaryrefslogtreecommitdiff
path: root/ci/lint
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2022-11-28 11:11:01 +0100
committerMarcoFalke <falke.marco@gmail.com>2022-11-28 11:09:30 +0100
commitfad1c55301b9f2d091d3b0d8a75ff522ce8dae5a (patch)
tree952dd8b38fe994473ec89b7d22f828c73849065f /ci/lint
parentfa5752da6a58fadd3f79f47ff98b796d9768872a (diff)
downloadbitcoin-fad1c55301b9f2d091d3b0d8a75ff522ce8dae5a.tar.xz
lint: Skip COMMIT_RANGE if no CIRRUS_PR
Diffstat (limited to 'ci/lint')
-rwxr-xr-xci/lint/06_script.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/ci/lint/06_script.sh b/ci/lint/06_script.sh
index 1f14dd079f..bc8e65d8e7 100755
--- a/ci/lint/06_script.sh
+++ b/ci/lint/06_script.sh
@@ -9,7 +9,12 @@ export LC_ALL=C
GIT_HEAD=$(git rev-parse HEAD)
if [ -n "$CIRRUS_PR" ]; then
COMMIT_RANGE="${CIRRUS_BASE_SHA}..$GIT_HEAD"
+ echo
+ git log --no-merges --oneline "$COMMIT_RANGE"
+ echo
test/lint/commit-script-check.sh "$COMMIT_RANGE"
+else
+ COMMIT_RANGE="SKIP_EMPTY_NOT_A_PR"
fi
export COMMIT_RANGE
@@ -34,8 +39,3 @@ if [ "$CIRRUS_REPO_FULL_NAME" = "bitcoin/bitcoin" ] && [ "$CIRRUS_PR" = "" ] ; t
${CI_RETRY_EXE} gpg --keyserver hkps://keys.openpgp.org --recv-keys "${KEYS[@]}" &&
./contrib/verify-commits/verify-commits.py;
fi
-
-if [ -n "$COMMIT_RANGE" ]; then
- echo
- git log --no-merges --oneline "$COMMIT_RANGE"
-fi