mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 02:24: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 })
|
||||
|
||||
await execa(gitCMD, ["pull"], {
|
||||
await execa(gitCMD, ["pull", "--rebase"], {
|
||||
cwd: _path,
|
||||
stdout: "inherit",
|
||||
stderr: "inherit",
|
||||
|
@ -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`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user