mirror of https://github.com/zulip/zulip.git
lint: Fix gitlint checking commits in master but not in the branch.
This was causing a bunch of spurious failures. Workaround for https://github.com/travis-ci/travis-ci/issues/4596 ; TRAVIS_COMMIT_RANGE is actually just totally wrong for this purpose.
This commit is contained in:
parent
8fb9d2bff3
commit
faf47fe147
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue