Skip to content

Commit

Permalink
Merge pull request #3641 from igchor/travis_commit_range_fix
Browse files Browse the repository at this point in the history
common: Adjust TRAVIS_COMMIT_RANGE variable
  • Loading branch information
marcinslusarz committed Mar 14, 2019
2 parents 64acac2 + fe87a81 commit 9867e33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion utils/docker/pull-or-rebuild-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ fi

# Find all the commits for the current build
if [[ -n "$TRAVIS_COMMIT_RANGE" ]]; then
commits=$(git rev-list $TRAVIS_COMMIT_RANGE)
# $TRAVIS_COMMIT_RANGE contains "..." instead of ".."
# https://github.com/travis-ci/travis-ci/issues/4596
PR_COMMIT_RANGE="${TRAVIS_COMMIT_RANGE/.../..}"

commits=$(git rev-list $PR_COMMIT_RANGE)
else
commits=$TRAVIS_COMMIT
fi
Expand Down

0 comments on commit 9867e33

Please sign in to comment.