code: function isDirty () {
    return pify(git.raw.bind(git))(['status', '-s'])
      .then((out) => {
        if (out && out.trim().length > 0) {
          throw new Error('Dirty git repo, aborting')
        }
      })
  }
docs: Is the current git workspace dirty?