1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 1× 1× | 'use strict'; var exec = require('child_process').exec; module.exports = function(command, callback) { exec('git ' + command, function(err) { if (err) { throw new Error('@ git ' + command + ';\n\n' + err); } if (callback) { callback(); } }); }; |