Skip to content

Commit 1b41ce8

Browse files
committed
lint: Don't use TRAVIS_COMMIT_RANGE for commit-script-check
1 parent 54fc96f commit 1b41ce8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ci/lint/06_script.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
export LC_ALL=C
88

99
if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then
10-
test/lint/commit-script-check.sh $TRAVIS_COMMIT_RANGE
10+
# TRAVIS_BRANCH will be present in a Travis environment. For builds triggered
11+
# by a pull request this is the name of the branch targeted by the pull request.
12+
# https://docs.travis-ci.com/user/environment-variables/
13+
COMMIT_RANGE="$TRAVIS_BRANCH..HEAD"
14+
test/lint/commit-script-check.sh $COMMIT_RANGE
1115
fi
1216

1317
test/lint/git-subtree-check.sh src/crypto/ctaes

0 commit comments

Comments
 (0)