Implement git pull --rebase --autostash in sync-vps-repos.sh and run-vps-data-production.sh for non-destructive bidirectional telemetry reconciliation
This commit is contained in:
1 parent
5625e287f5
commit
51f4a59e26
3 files changed
+5
-15
No files matched your search
@@ -140,6 +140,7 @@ if [[ "${DO_PUSH}" -eq 1 ]] && [[ -f "/etc/hyperstitionstud.io/id_ed25519_git_li
|
||||
git -C "${REPOS_ROOT}/${r}" add -A
|
||||
if ! git -C "${REPOS_ROOT}/${r}" diff --cached --quiet; then
|
||||
run_checked "git commit (${r})" git -C "${REPOS_ROOT}/${r}" commit -m "chore(telemetry): automated VPS ${WINDOW_MODE} harvest (${STAMP_UTC})" || true
|
||||
run_checked "git pull --rebase --autostash (${r})" git -C "${REPOS_ROOT}/${r}" pull --rebase --autostash origin main || true
|
||||
run_checked "git push (${r})" git -C "${REPOS_ROOT}/${r}" push origin main || true
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user