feat(deploy): Add git clean -fd to n8n-pi-wrap start command
This commit is contained in:
parent
e711413257
commit
29d9511e13
1 changed files with 4 additions and 1 deletions
|
|
@ -41,9 +41,12 @@ case "$cmd" in
|
||||||
|
|
||||||
# Clean start on the configured base (develop), pinned to the remote. Destroys only
|
# Clean start on the configured base (develop), pinned to the remote. Destroys only
|
||||||
# vm101's scratch checkout (never a shared branch, never a force-push) — this is by design.
|
# vm101's scratch checkout (never a shared branch, never a force-push) — this is by design.
|
||||||
|
# `clean -fd` also removes leftover UNTRACKED files (e.g. wiki/sources/* or a stale
|
||||||
|
# .ingest-manifest.json from a half-finished previous run) that `reset --hard` won't touch.
|
||||||
git fetch -q origin \
|
git fetch -q origin \
|
||||||
&& git switch -q "${INGEST_BASE:-main}" 2>/dev/null \
|
&& git switch -q "${INGEST_BASE:-main}" 2>/dev/null \
|
||||||
&& git reset -q --hard "origin/${INGEST_BASE:-main}"
|
&& git reset -q --hard "origin/${INGEST_BASE:-main}" \
|
||||||
|
&& git clean -q -fd
|
||||||
|
|
||||||
# SEMANTIC step: dedicated script drives pi to WRITE wiki pages + manifest.
|
# SEMANTIC step: dedicated script drives pi to WRITE wiki pages + manifest.
|
||||||
# (NOT `pi -p "/skill:ingest ..."`, which makes the model reply in chat and write nothing.)
|
# (NOT `pi -p "/skill:ingest ..."`, which makes the model reply in chat and write nothing.)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue