Skip to content

Commit dcab783

Browse files
committed
ci: fix branch comparison
1 parent a9be15e commit dcab783

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/test-commit-messages.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ execSync('git fetch origin');
3636
// Travis doesn't have master when running jobs on other branches (minor/patch/etc).
3737
execSync('git fetch origin master:master');
3838

39+
const branch = process.env.TRAVIS_BRANCH;
3940

40-
const output = execSync('git log master.. --reverse --format="%H %s" --no-merges', {
41+
const output = execSync('git log ' + branch + '..HEAD --reverse --format="%H %s" --no-merges', {
4142
encoding: 'utf-8'
4243
});
4344

0 commit comments

Comments
 (0)