travis.yml: always run git reset --hard once.

This commit is contained in:
Mike McQuaid 2015-09-25 15:51:22 +01:00
parent 74a2c3a509
commit d0cfad03dd

View File

@ -24,7 +24,7 @@ before_install:
- env | grep TRAVIS_
- if [ -f ".git/shallow" ]; then travis_retry git fetch --unshallow; fi
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then git reset --hard $TRAVIS_COMMIT || travis_retry git fetch origin +refs/pull/$TRAVIS_PULL_REQUEST/merge:; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git reset --hard $TRAVIS_COMMIT; fi
- git reset --hard $TRAVIS_COMMIT
- git clean -qxdff
script: