mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-02 04:50:06 -05:00
da2e04fc94
# Conflicts: # dev/run.js
16 lines
518 B
JavaScript
16 lines
518 B
JavaScript
/* eslint-disable no-console */
|
|
|
|
// http://stackoverflow.com/questions/1683531/how-to-import-existing-git-repository-into-another#answer-8396318
|
|
|
|
const { snakeCase } = require('lodash')
|
|
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} ${branch}`
|
|
|
|
console.log(command)
|
|
execSync(command, { stdio: 'inherit' })
|