Skip to content

Commit 6c092ea

Browse files
committed
Fix aggregate layout issue
1 parent 3e1ae46 commit 6c092ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

make-util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ var getRefs = function () {
772772
var branch;
773773
if (process.env.TF_BUILD) {
774774
// during CI agent checks out a commit, not a branch.
775-
// $(build.sourceBranch) indicates the branch name, e.g. refs/heads/releases/m108
775+
// $(build.sourceBranch) indicates the branch name, e.g. releases/m108
776776
branch = process.env.BUILD_SOURCEBRANCH;
777777
}
778778
else {
@@ -785,7 +785,7 @@ var getRefs = function () {
785785
assert(branch, 'branch');
786786
var commit = run('git rev-parse --short=8 HEAD', /*inheritStreams*/false, /*noHeader*/true);
787787
var release;
788-
if (branch.match(/^refs\/heads\/releases\/m[0-9]+$/)) {
788+
if (branch.match(/^(refs\/heads\/)?releases\/m[0-9]+$/)) {
789789
release = parseInt(branch.split('/').pop().substr(1));
790790
}
791791

0 commit comments

Comments
 (0)