use pull rebase after reset

This commit is contained in:
SrGooglo 2024-02-04 21:52:18 +01:00
parent d2f0cf9d10
commit d6170aafc3
2 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@ export default async (manifest, step) => {
fs.mkdirSync(_path, { recursive: true })
await execa(gitCMD, ["pull"], {
await execa(gitCMD, ["pull", "--rebase"], {
cwd: _path,
stdout: "inherit",
stderr: "inherit",

View File

@ -49,10 +49,7 @@ 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}`)
console.log(`[${manifest.id}] steps.git_reset() | Resetting to ${from}`)
await execa(gitCMD, ["reset", "--hard", from], {
cwd: _path,
@ -60,6 +57,9 @@ export default async (manifest, step) => {
stderr: "inherit",
})
// pull the latest
await git_pull(manifest, step)
sendToRender(`pkg:update:status`, {
id: manifest.id,
statusText: `Checkout to HEAD`,