all files / lib/ git.js

28.57% Statements 2/7
0% Branches 0/4
0% Functions 0/2
28.57% Lines 2/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16                           
'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();
    }
  });
};