From 98e7fdfd73dbde169f36e30b32dd3aac503da65d Mon Sep 17 00:00:00 2001 From: jweg <jweg@informatik.uni-kiel.de> Date: Tue, 18 Jul 2017 15:30:32 +0200 Subject: [PATCH] .git for backend plugin excluded for copying --- backendFunctions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backendFunctions.js b/backendFunctions.js index 04829ef..aa223d6 100644 --- a/backendFunctions.js +++ b/backendFunctions.js @@ -51,8 +51,8 @@ function backendInstallAddons(checkedFiles,downloadFiles){ if(checkedPlugins.length !== 0 ){ checkedPlugins.forEach((pluginName) => { - //TODO want to copy everything in backend-plugin except .git, workaround for now: ./demo/ - exec('cd '+ pluginName + ' git pull ' + ' && cp -R ' + ' ./demo/ '+' ../explorviz-ui-backend/plugins/net/explorviz/plugins/ ', (error, stdout, stderr) => { //'cd explorviz-ui-backend/plugins/net/explorviz/plugins/ ' + + + exec('cd '+ pluginName + ' git pull ' + '&& rsync -av . ' + ' ../explorviz-ui-backend/plugins/net/explorviz/plugins/ ' + ' --exclude .git', (error, stdout, stderr) => { //'cd explorviz-ui-backend/plugins/net/explorviz/plugins/ ' + if (error) { reject(error); -- GitLab