pull on reset

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

View File

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