diff options
| author | Fabian Jahr <[email protected]> | 2020-10-03 18:00:43 +0200 |
|---|---|---|
| committer | Fabian Jahr <[email protected]> | 2020-10-03 21:55:52 +0200 |
| commit | 1b41ce8f5f3debae03ca60e4acada14680df9185 (patch) | |
| tree | 1bc59b6495f366847df5330d54011f0d896edda5 | |
| parent | Merge #19956: rpc: Improve invalid vout value rpc error message (diff) | |
| download | discoin-1b41ce8f5f3debae03ca60e4acada14680df9185.tar.xz discoin-1b41ce8f5f3debae03ca60e4acada14680df9185.zip | |
lint: Don't use TRAVIS_COMMIT_RANGE for commit-script-check
| -rwxr-xr-x | ci/lint/06_script.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ci/lint/06_script.sh b/ci/lint/06_script.sh index 003bdf3c2..dc0f9b923 100755 --- a/ci/lint/06_script.sh +++ b/ci/lint/06_script.sh @@ -7,7 +7,11 @@ export LC_ALL=C if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then - test/lint/commit-script-check.sh $TRAVIS_COMMIT_RANGE + # TRAVIS_BRANCH will be present in a Travis environment. For builds triggered + # by a pull request this is the name of the branch targeted by the pull request. + # https://docs.travis-ci.com/user/environment-variables/ + COMMIT_RANGE="$TRAVIS_BRANCH..HEAD" + test/lint/commit-script-check.sh $COMMIT_RANGE fi test/lint/git-subtree-check.sh src/crypto/ctaes |