Skip to content

Instantly share code, notes, and snippets.

@fat
Created June 25, 2012 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fat/2992182 to your computer and use it in GitHub Desktop.
Save fat/2992182 to your computer and use it in GitHub Desktop.
var spawn = require('child_process').spawn
var cp = spawn('git', ['clone', "git://github.com/jquery/jquery.git"])
cp.stdout.setEncoding('utf8')
cp.stderr.setEncoding('utf8')
cp.stdout.on('data', function (data) {
console.log(arguments)
})
cp.stderr.on('data', function (data) {
console.log(arguments)
})
cp.on('exit', function (code) {
console.log(arguments)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment