mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 02:24:18 +00:00
pull on reset
This commit is contained in:
parent
38b7f4022c
commit
e528a854bb
@ -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], {
|
||||
|
Loading…
x
Reference in New Issue
Block a user