@@ -32,12 +32,12 @@ function getRepoRoot() {
32
32
} ) ;
33
33
}
34
34
35
- function ensureCurrentBranchIsDevelop ( ) {
36
- return u . isCurrentBranch ( 'develop ' )
37
- . then ( function ( isDevelop ) {
38
- return isDevelop ?
35
+ function ensureCurrentBranchIsMaster ( ) {
36
+ return u . isCurrentBranch ( 'master ' )
37
+ . then ( function ( isMaster ) {
38
+ return isMaster ?
39
39
null :
40
- Promise . reject ( new Error ( 'Please switch to the \'develop \' branch before running this script.' ) ) ;
40
+ Promise . reject ( new Error ( 'Please switch to the \'master \' branch before running this script.' ) ) ;
41
41
} ) ;
42
42
}
43
43
@@ -165,9 +165,9 @@ function getTarballUrl(pkg) {
165
165
return u . getTarballUrl ( remoteName , pkg . stagingBranch ( ) ) ;
166
166
}
167
167
168
- function checkoutDevelop ( ) {
169
- console . log ( '\nReturning to branch \'develop \'...' ) ;
170
- return u . checkoutBranch ( 'develop ' ) ;
168
+ function checkoutMaster ( ) {
169
+ console . log ( '\nReturning to branch \'master \'...' ) ;
170
+ return u . checkoutBranch ( 'master ' ) ;
171
171
}
172
172
173
173
function deleteStagingBranches ( ) {
@@ -182,7 +182,7 @@ function deleteStagingBranches() {
182
182
}
183
183
184
184
function cleanup ( ) {
185
- return checkoutDevelop ( )
185
+ return checkoutMaster ( )
186
186
. then ( deleteStagingBranches ) ;
187
187
}
188
188
@@ -204,7 +204,7 @@ if (process.argv.length < 4) {
204
204
}
205
205
206
206
getRepoRoot ( )
207
- . then ( ensureCurrentBranchIsDevelop )
207
+ . then ( ensureCurrentBranchIsMaster )
208
208
. then ( ensureThereAreNoUncommittedChanges )
209
209
. then ( ensureWorkingDirectoryIsClean )
210
210
. then ( ensureRepoIsTrackingTheGivenRemote )
0 commit comments