File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ( / ^ r e f s \/ h e a d s \/ r e l e a s e s \/ m [ 0 - 9 ] + $ / ) ) {
788+ if ( branch . match ( / ^ ( r e f s \/ h e a d s \/ ) ? r e l e a s e s \/ m [ 0 - 9 ] + $ / ) ) {
789789 release = parseInt ( branch . split ( '/' ) . pop ( ) . substr ( 1 ) ) ;
790790 }
791791
You can’t perform that action at this time.
0 commit comments