@@ -32,12 +32,12 @@ function getRepoRoot() {
3232 } ) ;
3333}
3434
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 ?
3939 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.' ) ) ;
4141 } ) ;
4242}
4343
@@ -165,9 +165,9 @@ function getTarballUrl(pkg) {
165165 return u . getTarballUrl ( remoteName , pkg . stagingBranch ( ) ) ;
166166}
167167
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 ' ) ;
171171}
172172
173173function deleteStagingBranches ( ) {
@@ -182,7 +182,7 @@ function deleteStagingBranches() {
182182}
183183
184184function cleanup ( ) {
185- return checkoutDevelop ( )
185+ return checkoutMaster ( )
186186 . then ( deleteStagingBranches ) ;
187187}
188188
@@ -204,7 +204,7 @@ if (process.argv.length < 4) {
204204}
205205
206206getRepoRoot ( )
207- . then ( ensureCurrentBranchIsDevelop )
207+ . then ( ensureCurrentBranchIsMaster )
208208 . then ( ensureThereAreNoUncommittedChanges )
209209 . then ( ensureWorkingDirectoryIsClean )
210210 . then ( ensureRepoIsTrackingTheGivenRemote )
0 commit comments