allow specifying branch for repo merge

This commit is contained in:
Chris Breidng
2017-04-21 10:08:26 -04:00
parent 23209b2d34
commit 0d20024ead
+2 -1
View File
@@ -5,8 +5,9 @@ const { execSync } = require('child_process')
const argv = require('minimist')(process.argv.slice(2))
const to = argv._[0]
const branch = argv._[1] || 'master'
const remote = snakeCase(to)
const command = `git subtree pull --prefix=packages/${to}/ ${remote} master`
const command = `git subtree pull --prefix=packages/${to}/ ${remote} ${branch}`
console.log(command)
execSync(command)