use git hard reset
This commit is contained in:
parent
5cb2d91873
commit
a559a55abd
2
www.js
2
www.js
@ -14,7 +14,7 @@ app.get("/update", (req, res) => {
|
||||
let data = JSON.parse(req.query.payload);
|
||||
res.sendStatus(200);
|
||||
if (data.commits.some(commit => commit.message.includes("%%"))) return;
|
||||
child_process.exec("git pull", function(error) {
|
||||
child_process.exec("git fetch && git reset --hard", function(error) {
|
||||
if (error) return void client.channels.resolve(config.bot_channel)?.send(`git pull: ${error.message}`);
|
||||
child_process.exec("npm install", async function(error) {
|
||||
if (error) return void client.channels.resolve(config.bot_channel)?.send(`npm install: ${error.message}`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user