From 6a9a1a1dd9c02197b56538521d7a0f283ddfe058 Mon Sep 17 00:00:00 2001 From: ggolmar <42552491+ggolmar@users.noreply.github.com> Date: Fri, 26 Oct 2018 14:48:22 -0300 Subject: [PATCH] Update index.js Now accept path with spaces in repo. --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,