Replace script/update-policy with a short wget-and-commit script (closes #165)
check / check (push) Successful in 13s

The script fetches a fixed list of three files from the main branch of
prompts with wget: docs/REPO_POLICIES.md, docs/CODE_STYLEGUIDE.md and
itself. It moves them into place and commits them. It does not push. It
stops before anything is replaced when a fetch fails, when a listed file
has uncommitted changes, and when REPO_POLICIES.md is still at the repo
root. It runs under busybox.

The line-keeping rules, the hash argument and the push are gone. The
policies and checklists say so, and name docs/REPO_POLICIES.md as the
file's place.

Model: opus-5-5
This commit is contained in:
sneak committed 2026-11-18 20:56:57 +00:00
1 parent 630437e620
commit 47b35661a2
6 files changed
+135 -781

No files matched your search

+3 -3
View File
@@ -138,9 +138,9 @@ alpine. We provide:
`script/check`
- `script/install-precommit` — installs the git pre-commit hook (our own
extension); `make hooks` shims to it
- `script/update-policy` — fetch the vendored policy files from this repo,
commit them and push (our own extension); it is for the repos that vendor them
and stops when run here
- `script/update-policy` — fetch the shared policy files from this repo and
commit them, without pushing (our own extension); it is for the repos that
carry them and stops when run here
`make hooks` installs the pre-commit hook that runs `script/precommit`.