@@ -53,7 +53,7 @@ var getGitRepoInfo = function() {
5353 * @return {String } The codename if found, otherwise null/undefined
5454 */
5555var getCodeName = function ( tagName ) {
56- var gitCatOutput = shell . exec ( 'git cat-file -p ' + tagName , { silent :true } ) . output ;
56+ var gitCatOutput = shell . exec ( 'git cat-file -p ' + tagName , { silent :true } ) . stdout ;
5757 var tagMessage = gitCatOutput . match ( / ^ .* c o d e n a m e .* $ / mg) [ 0 ] ;
5858 var codeName = tagMessage && tagMessage . match ( / c o d e n a m e \( ( .* ) \) / ) [ 1 ] ;
5959 if ( ! codeName ) {
@@ -69,7 +69,7 @@ var getCodeName = function(tagName) {
6969 * @return {String } The build segment of the version
7070 */
7171function getBuild ( ) {
72- var hash = shell . exec ( 'git rev-parse --short HEAD' , { silent : true } ) . output . replace ( '\n' , '' ) ;
72+ var hash = shell . exec ( 'git rev-parse --short HEAD' , { silent : true } ) . stdout . replace ( '\n' , '' ) ;
7373 return 'sha.' + hash ;
7474}
7575
@@ -87,7 +87,7 @@ var getTaggedVersion = function() {
8787 var gitTagResult = shell . exec ( 'git describe --exact-match' , { silent :true } ) ;
8888
8989 if ( gitTagResult . code === 0 ) {
90- var tag = gitTagResult . output . trim ( ) ;
90+ var tag = gitTagResult . stdout . trim ( ) ;
9191 var version = semver . parse ( tag ) ;
9292
9393 if ( version && checkBranchPattern ( version . version , currentPackage . branchPattern ) ) {
@@ -113,7 +113,7 @@ var getPreviousVersions = function() {
113113 var query = NO_REMOTE_REQUESTS ? 'git tag' : 'git ls-remote --tags ' + repo_url ;
114114 var tagResults = shell . exec ( query , { silent : true } ) ;
115115 if ( tagResults . code === 0 ) {
116- return _ ( tagResults . output . match ( / v [ 0 - 9 ] .* [ 0 - 9 ] $ / mg) )
116+ return _ ( tagResults . stdout . match ( / v [ 0 - 9 ] .* [ 0 - 9 ] $ / mg) )
117117 . map ( function ( tag ) {
118118 var version = semver . parse ( tag ) ;
119119 return version ;
@@ -159,7 +159,7 @@ var getCdnVersion = function() {
159159 { silent : true } ) ;
160160 if ( cdnResult . code === 0 ) {
161161 // --write-out appends its content to the general request response, so extract it
162- var statusCode = cdnResult . output . split ( '\n' ) . pop ( ) . trim ( ) ;
162+ var statusCode = cdnResult . stdout . split ( '\n' ) . pop ( ) . trim ( ) ;
163163 if ( statusCode === '200' ) {
164164 cdnVersion = version ;
165165 }
0 commit comments