I pushed a commit on Sunday, unknowingly during the GitHub outage. That commit didn’t seem to trigger a Travis build, presumably because the webhooks were paused. Yesterday I pushed some more commits, and those all started failing with this error:
Unhandled rejection Error: Command failed: /usr/bin/git checkout 1ffe576d8197b8319df50bd88681ec03990ce424
fatal: reference is not a tree: 1ffe576d8197b8319df50bd88681ec03990ce424
That commit doesn’t exist in the repo. What’s strange is that the header of the build page lists Commit 6180336 as what triggered the build, which is correct. Why isn’t the build checking out that commit, which it clearly knows about?
Things I’ve tried:
- Add git: depth: 99999 to .travis.yml
- Squashing the commits up to the last one that built
- Creating and pushing a new branch
I haven’t been able to find much useful info about the error. It doesn’t seem related to shallow clones, since the commit sha it’s trying to checkout just doesn’t exist at all. It 404s on GitHub.
Anything I can do to fix this?
Example bad build on travis-ci: fwextensions/quick-score-demo/builds/88725372
Repo on GitHub: fwextensions/quick-score-demo
(Not full URLs since I can’t post more than 2. :|)