Reset local repo before pulling latest update

This commit is contained in:
Chrystian Huot 2020-01-08 07:47:37 -05:00
parent c178de1c86
commit 26c791cacb

View file

@ -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');