mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 18:43:42 +08:00
test: fix commit message test for branches (#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.
This commit is contained in:
parent
ab9a369325
commit
48324d11cb
@ -32,7 +32,7 @@ logger
|
|||||||
// Note: This is based on the gulp task found in the angular/angular repository
|
// Note: This is based on the gulp task found in the angular/angular repository
|
||||||
|
|
||||||
exec(
|
exec(
|
||||||
'git fetch origin master && git log --reverse --format=%s origin/master.. --no-merges',
|
'git fetch origin master:master && git log --reverse --format=%s master.. --no-merges',
|
||||||
(error, stdout, stderr) => {
|
(error, stdout, stderr) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
logger.fatal(stderr);
|
logger.fatal(stderr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user