aboutsummaryrefslogtreecommitdiff
path: root/ci/lint/06_script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/lint/06_script.sh')
-rwxr-xr-xci/lint/06_script.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/ci/lint/06_script.sh b/ci/lint/06_script.sh
index ba582e7bf6..8aa775c28a 100755
--- a/ci/lint/06_script.sh
+++ b/ci/lint/06_script.sh
@@ -7,12 +7,10 @@
export LC_ALL=C
if [ -n "$CIRRUS_PR" ]; then
- # CIRRUS_PR will be present in a Cirrus environment. For builds triggered
- # by a pull request this is the name of the branch targeted by the pull request.
- # https://cirrus-ci.org/guide/writing-tasks/#environment-variables
- COMMIT_RANGE="$CIRRUS_BRANCH..HEAD"
+ COMMIT_RANGE="$CIRRUS_BASE_SHA..HEAD"
test/lint/commit-script-check.sh $COMMIT_RANGE
fi
+export COMMIT_RANGE
# This only checks that the trees are pure subtrees, it is not doing a full
# check with -r to not have to fetch all the remotes.