lib/gitmech.js
// Internal helper to talk to the git subprocess (exec)
Internal helper to talk to the git subprocess (exec)
Internal helper to talk to the git subprocess ( exec )
function gitExec (commands, callback) {
  commands = gitMech.gitBin + ' ' + gitCommands.concat(commands).join(' ')
  childProcess.exec(commands, { cwd: workTree }, function (error, stdout, stderr) {
    if (error || stderr.length > 0) {
      error = new Error(commands + '\n' + stderr)
      callback(error)
      return
    }
    callback(null, stdout)
  })
}
function gitExec ( commands , callback ) { commands = gitMech . gitBin + ' ' + gitCommands . concat ( commands ) . join ( ' ' ) childProcess . exec ( commands , { cwd : workTree } , function ( error , stdout , stderr ) { if ( error || stderr . length > 0 ) { error = new Error ( commands + '\n' + stderr ) callback ( error ) return } callback ( null , stdout ) } ) }
Internal helper to talk to the git subprocess (exec)
Internal helper to talk to the git subprocess ( exec )
// There is a limit at 200KB (increase it with maxBuffer option)