Skip to content

Commit

Permalink
fix(git): add extra configuration to enable fetching branches
Browse files Browse the repository at this point in the history
  • Loading branch information
evansiroky committed Nov 29, 2018
1 parent 53dc431 commit 533d963
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ async function mergeMasterIntoDev (context) {

logger.log('Merging master branch into dev branch')

// fetch all branches because Travis doesn't do it for us
// code copied from https://stackoverflow.com/a/44036486/269834
await execa(
'git',
[
'config',
'--replace-all',
'remote.origin.fetch',
'+refs/heads/*:refs/remotes/origin/*'
],
execaOpts
)

// fetch everything
await execa('git', ['fetch'], execaOpts)

Expand Down

0 comments on commit 533d963

Please sign in to comment.