old_contents: const childProcess = require('child_process')
  const { syncAll } = require('./update-nested-deps')
  const path = require('path')
  const git = require('simple-git')(path.resolve(__dirname, '..'))
  
  const gitOutputHandler = (command, stdout, stderr) => {
    stdout.pipe(process.stdout)
    stderr.pipe(process.stderr)
  }
  
  const BRANCH = process.env.TRAVIS_PULL_REQUEST_BRANCH || process.env.TRAVIS_BRANCH || ''
  const REPO = process.env.TRAVIS_REPO_SLUG
  
  console.log('Current branch is:', BRANCH || '(empty)')
  if (!BRANCH.startsWith('greenkeeper/')) {
    console.log('Not a Greenkeeper PR, exiting.')
    process.exit(0)
  }
  
  const changedPackages = syncAll()
  
  const run = command => console.log(childProcess.spawnSync(command).output.map(b => (b || '').toString()).join('\n'))
  
  git
    .outputHandler(gitOutputHandler)
    .addConfig('user.email', 'travis@travis-ci.org')
    .addConfig('user.name', 'Travis CI')
    .add(changedPackages.map(p => path.join(p.folder, 'package.json')))
    .commit('chore(package): update nested deps')
  
    .outputHandler(() => {})
    // Silence this line to avoid revealing the secret token.
    .addRemote('gh-repo', `https://\${GH_TOKEN}@github.com/${REPO}.git`)
    .outputHandler(gitOutputHandler)
  
    .push('gh-pages', BRANCH, ['--set-upstream'])
  
new_contents: const { syncAll } = require('./update-nested-deps')
  const path = require('path')
  const git = require('simple-git')(path.resolve(__dirname, '..'))
  
  const gitOutputHandler = (command, stdout, stderr) => {
    stdout.pipe(process.stdout)
    stderr.pipe(process.stderr)
  }
  
  const BRANCH = process.env.TRAVIS_PULL_REQUEST_BRANCH || process.env.TRAVIS_BRANCH || ''
  const REPO = process.env.TRAVIS_REPO_SLUG
  
  console.log('Current branch is:', BRANCH || '(empty)')
  if (!BRANCH.startsWith('greenkeeper/')) {
    console.log('Not a Greenkeeper PR, exiting.')
    process.exit(0)
  }
  
  const changedPackages = syncAll()
  
  git
    .outputHandler(gitOutputHandler)
    .addConfig('user.email', 'travis@travis-ci.org')
    .addConfig('user.name', 'Travis CI')
    .add(changedPackages.map(p => path.join(p.folder, 'package.json')))
    .commit('chore(package): update nested deps')
  
    .outputHandler(() => {})
    // Silence this line to avoid revealing the secret token.
    .addRemote('gh-repo', `https://\${GH_TOKEN}@github.com/${REPO}.git`)
    .outputHandler(gitOutputHandler)
  
    .push('gh-pages', BRANCH, ['--set-upstream'])
  
subject: remove unused stuff