diff --git a/lib/index.js b/lib/index.js index ed2accb..8a34e74 100644 --- a/lib/index.js +++ b/lib/index.js @@ -56,7 +56,7 @@ Gilp.prototype._getStream = function (objectFormat, paths, glob, includeBOM) { return streamify(paths) .pipe(through2.obj(function (path, enc, callback) { - var contents = execSync(util.format('git cat-file blob %s', util.format(objectFormat, path))); + var contents = execSync(util.format('git cat-file blob %s', util.format(objectFormat, path).replace(' ', '\\ '))); var file = new File({ gilp: true, path: path,