             done(err)
             return
           )
-          .on('data', (data) ->
+
+          child.stdout.on('data', (data) ->
             name += data.toString()
             process.stdout.write(data)
             return

        (done) ->
          # Ensure we are committing the master
          name = ''
          exec('git', ['status', '--porcelain'], { stdio: [process.stdin, 'pipe', process.stderr] }, (err) ->
            if not err? and name != 'master'
              err = new Error('Current branch is not master. Please only distribute from master.')
            if err?

    options.output = util.mergeOptions(config.output, options.output)

    exec = (cmd, args, options, cbDone, cbError) ->
      if typeof options != 'object'
        cbError = cbDone
        cbDone = options
        options = {}
