mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 10:34:18 +00:00
use pull rebase after reset
This commit is contained in:
parent
d2f0cf9d10
commit
d6170aafc3
@ -19,7 +19,7 @@ export default async (manifest, step) => {
|
|||||||
|
|
||||||
fs.mkdirSync(_path, { recursive: true })
|
fs.mkdirSync(_path, { recursive: true })
|
||||||
|
|
||||||
await execa(gitCMD, ["pull"], {
|
await execa(gitCMD, ["pull", "--rebase"], {
|
||||||
cwd: _path,
|
cwd: _path,
|
||||||
stdout: "inherit",
|
stdout: "inherit",
|
||||||
stderr: "inherit",
|
stderr: "inherit",
|
||||||
|
@ -49,10 +49,7 @@ export default async (manifest, step) => {
|
|||||||
statusText: `Reset from ${from}`,
|
statusText: `Reset from ${from}`,
|
||||||
})
|
})
|
||||||
|
|
||||||
// pull the latest
|
console.log(`[${manifest.id}] steps.git_reset() | Resetting to ${from}`)
|
||||||
await git_pull(manifest, step)
|
|
||||||
|
|
||||||
console.log(`[${manifest.id}] steps.git_reset() | Reseting to ${from}`)
|
|
||||||
|
|
||||||
await execa(gitCMD, ["reset", "--hard", from], {
|
await execa(gitCMD, ["reset", "--hard", from], {
|
||||||
cwd: _path,
|
cwd: _path,
|
||||||
@ -60,6 +57,9 @@ export default async (manifest, step) => {
|
|||||||
stderr: "inherit",
|
stderr: "inherit",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// pull the latest
|
||||||
|
await git_pull(manifest, step)
|
||||||
|
|
||||||
sendToRender(`pkg:update:status`, {
|
sendToRender(`pkg:update:status`, {
|
||||||
id: manifest.id,
|
id: manifest.id,
|
||||||
statusText: `Checkout to HEAD`,
|
statusText: `Checkout to HEAD`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user