Actions
Task #5010
closedTravis fails when PRs are rebased and merged
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Plugin Template
Sprint:
Quarter:
Description
Failing Travis:
https://travis-ci.com/pulp/pulpcore/jobs/210048379#L904-L908
The cause is that sometimes HEAD^2 is undefined. Try this in pulpcore and you'll get the same problem:
git checkout 2ccdc7dc0135a62d37854caecf664232f9303dfe
git show HEAD^2 -s
We probably shouldn't rely on HEAD^2. Rather, it looks like Travis has a TRAVIS_COMMIT_MESSAGE we could maybe use.
Actions
HEAD^2 considered harmful
In certain cases, HEAD^2 can be undefined. Use git log --no-merges instead.
fixes #5010