From 8aa61cf30bf42d4b8d4301f1682b7000f7d56a6d Mon Sep 17 00:00:00 2001 From: Oj Date: Sun, 23 May 2021 14:24:54 +0100 Subject: [PATCH] [Index] Undo cache tweaks --- src/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index d420c6c..bb25b7f 100644 --- a/src/index.js +++ b/src/index.js @@ -141,13 +141,11 @@ for (const parentRepo of ModuleRepos) { // rmSync(cloneDir, { recursive: true, force: true }); if (existsSync(cloneDir)) { - /* process.chdir(cloneDir); + process.chdir(cloneDir); const currentHash = await new Promise((res) => exec(`git rev-parse HEAD`, (err, stdout) => res(stdout.trim()))); - if (currentHash !== repo[1]) rmSync(cloneDir, { recursive: true, force: true });*/ - - rmSync(cloneDir, { recursive: true, force: true }); + if (currentHash !== repo[1]) rmSync(cloneDir, { recursive: true, force: true }); } process.chdir(distDir); // Incase current wd is broken, in which case exec / git crashes