From bacaa9d09ceb784e59954c622f04c6f33a6af46e Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Wed, 2 Dec 2026 10:48:16 +0000 Subject: [PATCH] Fix sync-vps-repos.sh to unconditionally reset and checkout README.md (handling both staged and unstaged README modifications) --- README.md | 2 +- deploy/sync-vps-repos.sh | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 86501d8..dfd0492 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ > **Gitea Commit & Release Telemetry (`v2.17.1` • Namespace `urn:io:hyperstitionstud`)** > - **Repository Role & Public Route:** Shared PEP 420 Python core library (`hyperstitionstud_io.*`), MCP/REST server, `/quant/`, `/learn/`, `/engineering/`, `/math/`, & `/donate/` webroots → [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/) > - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.17.1 release state across 1 tracked module/artifact surface(s) -> - **Touched Files / Surfaces:** `src/hyperstitionstud_io/ci/deploy_scripts_sync.py` +> - **Touched Files / Surfaces:** `deploy/sync-vps-repos.sh` > - **Live Verified Ecosystem Metrics (`v2.17.1`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data diff --git a/deploy/sync-vps-repos.sh b/deploy/sync-vps-repos.sh index a4f284c..d8e5b2c 100755 --- a/deploy/sync-vps-repos.sh +++ b/deploy/sync-vps-repos.sh @@ -114,9 +114,8 @@ if [[ "${DO_PULL}" -eq 1 ]]; then echo "[1/5] Updating ${REPOS_ROOT}/${repo} (${remote_name}/${branch})..." prev_head="$(git -C "${REPOS_ROOT}/${repo}" rev-parse HEAD)" run_checked "git fetch ${repo}" git -C "${REPOS_ROOT}/${repo}" fetch --force "${remote_name}" "${branch}" --tags - if ! git -C "${REPOS_ROOT}/${repo}" diff --quiet -- README.md 2>&1; then - git -C "${REPOS_ROOT}/${repo}" checkout -- README.md || true - fi + git -C "${REPOS_ROOT}/${repo}" reset HEAD -- README.md || true + git -C "${REPOS_ROOT}/${repo}" checkout -- README.md || true if [[ -n "$(git -C "${REPOS_ROOT}/${repo}" ls-files financial-aq-harvest-latest.json)" ]]; then if ! git -C "${REPOS_ROOT}/${repo}" diff --quiet -- financial-aq-harvest-latest.json 2>&1; then git -C "${REPOS_ROOT}/${repo}" checkout -- financial-aq-harvest-latest.json || true