Skip to content

Commit

Permalink
Fix aggregate layout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsciple committed Dec 2, 2016
1 parent 3e1ae46 commit 6c092ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions make-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ var getRefs = function () {
var branch;
if (process.env.TF_BUILD) {
// during CI agent checks out a commit, not a branch.
// $(build.sourceBranch) indicates the branch name, e.g. refs/heads/releases/m108
// $(build.sourceBranch) indicates the branch name, e.g. releases/m108
branch = process.env.BUILD_SOURCEBRANCH;
}
else {
Expand All @@ -785,7 +785,7 @@ var getRefs = function () {
assert(branch, 'branch');
var commit = run('git rev-parse --short=8 HEAD', /*inheritStreams*/false, /*noHeader*/true);
var release;
if (branch.match(/^refs\/heads\/releases\/m[0-9]+$/)) {
if (branch.match(/^(refs\/heads\/)?releases\/m[0-9]+$/)) {
release = parseInt(branch.split('/').pop().substr(1));
}

Expand Down

0 comments on commit 6c092ea

Please sign in to comment.