1
0
mirror of https://github.com/ragestudio/relic.git synced 2025-07-10 17:54:17 +00:00

pull on reset

This commit is contained in:
SrGooglo 2024-02-02 14:36:47 +01:00
parent 38b7f4022c
commit e528a854bb

@ -4,6 +4,7 @@ import { execa } from "../../lib/execa"
import sendToRender from "../../utils/sendToRender" import sendToRender from "../../utils/sendToRender"
import git_pull from "./git_pull"
import Vars from "../../vars" import Vars from "../../vars"
const gitCMD = fs.existsSync(Vars.git_path) ? `${Vars.git_path}` : "git" const gitCMD = fs.existsSync(Vars.git_path) ? `${Vars.git_path}` : "git"
@ -48,6 +49,9 @@ export default async (manifest, step) => {
statusText: `Reset from ${from}`, statusText: `Reset from ${from}`,
}) })
// pull the latest
await git_pull(manifest, step)
console.log(`[${manifest.id}] steps.git_reset() | Reseting to ${from}`) console.log(`[${manifest.id}] steps.git_reset() | Reseting to ${from}`)
await execa(gitCMD, ["reset", "--hard", from], { await execa(gitCMD, ["reset", "--hard", from], {