Skip to content

Commit

Permalink
fix(git): also checkout master branch to properly merge
Browse files Browse the repository at this point in the history
  • Loading branch information
evansiroky committed Nov 29, 2018
1 parent 533d963 commit dc3aee4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ async function mergeMasterIntoDev (context) {
// fetch everything
await execa('git', ['fetch'], execaOpts)

// checkout master branch
// this is done because otherwise the commit seems to be the one just before
// the snapshot release
await execa('git', ['checkout', branch], execaOpts)

// checkout dev branch
await execa('git', ['checkout', devBranch], execaOpts)

Expand Down

0 comments on commit dc3aee4

Please sign in to comment.