From 5a4613617cd2e268f6cf6f2f430545101ec632c5 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 29 Jul 2014 16:07:25 +0300 Subject: [PATCH] fix diff --- diff.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/diff.js b/diff.js index a94f2ac0eb..1c801fc0f9 100644 --- a/diff.js +++ b/diff.js @@ -36,6 +36,7 @@ execute('git diff --name-only ' + versionFrom, function (stdout) { if (!fs.existsSync(upgradePath + '/files')) { fs.mkdirSync(upgradePath + '/files'); } + process.chdir(buildPath); var fileList = []; @@ -62,7 +63,7 @@ execute('git diff --name-only ' + versionFrom, function (stdout) { deletedFileList.push(file.replace('frontend/', '')); }); - process.chdir(buildPath); + execute('xargs -a ' + diffFilePath + ' cp --parents -t ' + upgradePath + '/files ' , function (stdout) { });