I have a Travis-CI script that checks pull commit messages . GitHub gives it a series of commits, and it uses git log --format=online "<lastref>..<firstref>" to create a SHA list for validation.
This works great most of the time, but sometimes it happens:
My transfer request (merging branch 2.2 into 2.x, several commits) gives this command on Travis:
git log --format=oneline b5d12909dacd80d21c4e4f4ca6d5683d6e547f9e..b349be9418371c1f694dabeccbce0e946fde3a0a
Locally, this works as expected. I get commits in PR. On Travis, however, the b5d129 commit does not appear, and therefore it unloads each commit back to the start of the project .
What's going on here?
Update: I did another PR merge, this time with the default Travo clone depth of git 50, but also not including the new commit on 2.x. In any case, the build for this new PR worked correctly . I'm still at a dead end. The clone depth should not have any effect, because the check failed if it did not have the necessary commits.
source share