Skip to content

Commit

Permalink
clean variables
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlacy committed Nov 10, 2014
1 parent feafdae commit 6648d77
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/init.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
var gutil = require('gulp-util');
var exec = require('child_process').exec;
var escape = require('any-shell-escape');

module.exports = function (opt, cb) {
if (!cb && typeof opt === 'function') {
Expand Down
2 changes: 1 addition & 1 deletion lib/reset.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = function (commit, opt, cb) {
if(!opt.args) opt.args = ' ';
if(!commit) commit = ' ';

var cmd = "git reset " + opt.args + " " + commit;
var cmd = "git reset " + opt.args + " " + escape([commit]);
return exec(cmd, {cwd: opt.cwd}, function(err, stdout, stderr){
if(err) return cb(err);
gutil.log(stdout, stderr);
Expand Down

0 comments on commit 6648d77

Please sign in to comment.