From 26c791cacbe5cde571f6333123e6b0fff6ffe7bf Mon Sep 17 00:00:00 2001 From: Chrystian Huot Date: Wed, 8 Jan 2020 07:47:37 -0500 Subject: [PATCH] Reset local repo before pulling latest update --- update.js | 1 + 1 file changed, 1 insertion(+) diff --git a/update.js b/update.js index dcdfefb..52afb19 100644 --- a/update.js +++ b/update.js @@ -7,6 +7,7 @@ const clientPath = path.resolve(__dirname, 'client'); const serverPath = path.resolve(__dirname, 'server'); process.stdout.write('Pulling new version from github...'); +childProcess.execSync('git reset --hard', { stdio: ['ignore', 'ignore', 'pipe'] }); childProcess.execSync('git pull', { stdio: ['ignore', 'ignore', 'pipe'] }); process.stdout.write(' done\n');