Fix sync-vps-repos.sh to unconditionally reset and checkout README.md (handling both staged and unstaged README modifications)

This commit is contained in:
Hermes Agent committed 2026-12-02 10:48:16 +00:00
1 parent 234ddcbb9b
commit bacaa9d09c
2 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
> **Gitea Commit & Release Telemetry (`v2.17.1` • Namespace `urn:io:hyperstitionstud`)** > **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/) > - **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) > - **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 > - **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
<!-- HS-COMMIT-STATUS:END --> <!-- HS-COMMIT-STATUS:END -->
+1 -2
View File
@@ -114,9 +114,8 @@ if [[ "${DO_PULL}" -eq 1 ]]; then
echo "[1/5] Updating ${REPOS_ROOT}/${repo} (${remote_name}/${branch})..." echo "[1/5] Updating ${REPOS_ROOT}/${repo} (${remote_name}/${branch})..."
prev_head="$(git -C "${REPOS_ROOT}/${repo}" rev-parse HEAD)" 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 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}" reset HEAD -- README.md || true
git -C "${REPOS_ROOT}/${repo}" checkout -- README.md || true git -C "${REPOS_ROOT}/${repo}" checkout -- README.md || true
fi
if [[ -n "$(git -C "${REPOS_ROOT}/${repo}" ls-files financial-aq-harvest-latest.json)" ]]; then 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 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 git -C "${REPOS_ROOT}/${repo}" checkout -- financial-aq-harvest-latest.json || true