Fix sync-vps-repos.sh financial-aq-harvest-latest.json checkout error on untracked repos and satisfy Gate D3 (zero /dev/null)

This commit is contained in:
Hermes Agent committed 2026-12-02 07:16:47 +00:00
1 parent 352f54f30a
commit 4415c871e6
2 files changed
+7 -3

No files matched your search

+5 -1
View File
@@ -117,7 +117,11 @@ if [[ "${DO_PULL}" -eq 1 ]]; then
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}" checkout -- financial-aq-harvest-latest.json || 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
fi
fi
if [[ "${repo}" == "${CI_REPO_DIR}" || "${repo}" == "ingglish-hyperdope-gematria" ]] && ! git -C "${REPOS_ROOT}/${repo}" diff --quiet 2>&1; then
git -C "${REPOS_ROOT}/${repo}" checkout -- . || true
fi