File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,17 @@ logger
3333
3434// Note: This is based on the gulp task found in the angular/angular repository
3535execSync ( 'git fetch origin' ) ;
36- // Travis doesn't have master when running jobs on other branches (minor/patch/etc).
37- execSync ( 'git fetch origin master:master --force' ) ;
3836
3937// Get PR target branch, default to master for running locally.
4038const currentBranch = process . env . TRAVIS_BRANCH
4139 || process . env . APPVEYOR_REPO_BRANCH
4240 || 'master' ;
4341
42+ if ( currentBranch !== 'master' ) {
43+ // Travis doesn't have master when running jobs on other branches (minor/patch/etc).
44+ execSync ( 'git fetch origin master:master --force' ) ;
45+ }
46+
4447const output = execSync ( 'git log ' + currentBranch + '..HEAD --reverse --format="%H %s" --no-merges' , {
4548 encoding : 'utf-8'
4649} ) ;
You can’t perform that action at this time.
0 commit comments