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
33
33
34
34
// Note: This is based on the gulp task found in the angular/angular repository
35
35
execSync('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');
38
36
39
37
// Get PR target branch, default to master for running locally.
40
38
const currentBranch = process.env.TRAVIS_BRANCH
41
39
|| process.env.APPVEYOR_REPO_BRANCH
42
40
|| 'master';
43
41
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
+
44
47
const output = execSync('git log ' + currentBranch + '..HEAD --reverse --format="%H %s" --no-merges', {
45
48
encoding: 'utf-8'
46
49
});
You can’t perform that action at this time.
0 commit comments