@@ -53,7 +53,7 @@ var getGitRepoInfo = function() {
53
53
* @return {String } The codename if found, otherwise null/undefined
54
54
*/
55
55
var 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 ;
57
57
var tagMessage = gitCatOutput . match ( / ^ .* c o d e n a m e .* $ / mg) [ 0 ] ;
58
58
var codeName = tagMessage && tagMessage . match ( / c o d e n a m e \( ( .* ) \) / ) [ 1 ] ;
59
59
if ( ! codeName ) {
@@ -69,7 +69,7 @@ var getCodeName = function(tagName) {
69
69
* @return {String } The build segment of the version
70
70
*/
71
71
function 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' , '' ) ;
73
73
return 'sha.' + hash ;
74
74
}
75
75
@@ -87,7 +87,7 @@ var getTaggedVersion = function() {
87
87
var gitTagResult = shell . exec ( 'git describe --exact-match' , { silent :true } ) ;
88
88
89
89
if ( gitTagResult . code === 0 ) {
90
- var tag = gitTagResult . output . trim ( ) ;
90
+ var tag = gitTagResult . stdout . trim ( ) ;
91
91
var version = semver . parse ( tag ) ;
92
92
93
93
if ( version && checkBranchPattern ( version . version , currentPackage . branchPattern ) ) {
@@ -113,7 +113,7 @@ var getPreviousVersions = function() {
113
113
var query = NO_REMOTE_REQUESTS ? 'git tag' : 'git ls-remote --tags ' + repo_url ;
114
114
var tagResults = shell . exec ( query , { silent : true } ) ;
115
115
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) )
117
117
. map ( function ( tag ) {
118
118
var version = semver . parse ( tag ) ;
119
119
return version ;
@@ -159,7 +159,7 @@ var getCdnVersion = function() {
159
159
{ silent : true } ) ;
160
160
if ( cdnResult . code === 0 ) {
161
161
// --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 ( ) ;
163
163
if ( statusCode === '200' ) {
164
164
cdnVersion = version ;
165
165
}
0 commit comments