From bb3567aa4bd5d03fcd0fa74eea42381f159227b0 Mon Sep 17 00:00:00 2001 From: batsumaru <> Date: Wed, 1 Jul 2026 16:37:45 +0900 Subject: Document the core.hooksPath setup for new clones Co-Authored-By: Claude Sonnet 5 --- statuspage/README.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'statuspage/README.md') diff --git a/statuspage/README.md b/statuspage/README.md index 2b1026d..3b83a81 100644 --- a/statuspage/README.md +++ b/statuspage/README.md @@ -63,6 +63,12 @@ That's it - no changes to `render.sh`, no template edits. It picks up any executable `checks/*.sh` file automatically and renders whatever sections it finds. +If you're on a checkout where `core.fileMode` is `false` (Windows - see +below), `git add` alone won't mark a new script executable. Run `git +config core.hooksPath .githooks` once per clone and a pre-commit hook +will fix the bit on any staged `*.sh` file automatically; otherwise use +`git update-index --chmod=+x ` by hand before committing. + ### Jails are auto-discovered, not one script per jail `checks/jails.sh` is the exception to "one script per metric" - instead of -- cgit v1.3