Skip to content

Commit 48324d1

Browse files
authored
test: fix commit message test for branches (angular#5004)
For travis runs on branches, local master never exists there's no branch tracking origin/master. This causes `git fetch origin master` to fetch into `FETCH_HEAD` instead of master. This PR will explicitely fetch origin master into local master, and use that for the log comparison.
1 parent ab9a369 commit 48324d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/test-commit-messages.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ logger
3232
// Note: This is based on the gulp task found in the angular/angular repository
3333

3434
exec(
35-
'git fetch origin master && git log --reverse --format=%s origin/master.. --no-merges',
35+
'git fetch origin master:master && git log --reverse --format=%s master.. --no-merges',
3636
(error, stdout, stderr) => {
3737
if (error) {
3838
logger.fatal(stderr);

0 commit comments

Comments
 (0)