Skip to content

Commit

Permalink
lint: Fix gitlint checking commits in master but not in the branch.
Browse files Browse the repository at this point in the history
This was causing a bunch of spurious failures.

Workaround for travis-ci/travis-ci#4596 ;
TRAVIS_COMMIT_RANGE is actually just totally wrong for this purpose.
  • Loading branch information
timabbott authored and Brock Whittaker committed Apr 26, 2017
1 parent 52b924e commit 59faa95
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/commit-message-lint
Expand Up @@ -5,10 +5,11 @@

# The rules can be found in /.gitlint

if [ $TRAVIS ]; then
range=$TRAVIS_COMMIT_RANGE
if [ "$TRAVIS" ]; then
# Work around https://github.com/travis-ci/travis-ci/issues/4596
range="${TRAVIS_COMMIT_RANGE/.../..}"
else
range="upstream/master...HEAD"
range="upstream/master..HEAD"
fi

gitlint --commits $range

0 comments on commit 59faa95

Please sign in to comment.