Skip to content

Commit

Permalink
Proposed fix for path with spaces (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Knox authored and Awarua- committed Dec 16, 2016
1 parent 81f8951 commit b8a22a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/common/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const exec = require('child_process').execSync,

commandWithPath = (path, args, callback) => {
args.unshift('git');
args.forEach((seg, index, arr) => arr[index] = `"${seg}"`);
const cmd = args.join(' ');
try {
const stdOut = exec(cmd, {cwd:path});
Expand Down

0 comments on commit b8a22a2

Please sign in to comment.