Skip to content

Commit

Permalink
Try to use native process.execSync and fallback to polyfill if it's n…
Browse files Browse the repository at this point in the history
…ot available.

Node.JS > 0.10 has it already.
Refernece: mgutz/execSync#20
  • Loading branch information
henvic committed Jan 8, 2015
1 parent 11605a1 commit e226631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'use strict';

var logger = require('./logger'),
execSync = require('execSync'),
execSync = require('child_process').execSync || require('execSync'),
spawn = require('child_process').spawn;

exports.checkout = function(branch, opt_newBranch, opt_callback) {
Expand Down

0 comments on commit e226631

Please sign in to comment.