diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-05-07 09:10:15 -1000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-05-07 09:10:15 -1000 |
| commit | 1fe6fc2b0c5cabf21c241f9a033e4d53dd475316 (patch) | |
| tree | 401cbf51b5c97dad5d72b26f6b51ba7162adee0c /.agent | |
| parent | 3a8208bb566f68542ea721eaa0f22a229af9b048 (diff) | |
chore: add pre-commit hook blocking commits to master
Installs scripts/git-hooks/pre-commit which hard-blocks any commit
attempted from the master branch. Activate with:
git config core.hooksPath scripts/git-hooks
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to '.agent')
| -rw-r--r-- | .agent/config.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.agent/config.md b/.agent/config.md index d0e00d1..52d135d 100644 --- a/.agent/config.md +++ b/.agent/config.md @@ -19,9 +19,12 @@ This is the primary source of truth for all AI agents working on **Nav**. These **Before any other action in every session: run `git branch` and switch to `main` if not already there.** ``` -git checkout main # run this if not already on main +git checkout main # run this if not already on main +git config core.hooksPath scripts/git-hooks # activate if not already set ``` +The repo ships a pre-commit hook in `scripts/git-hooks/pre-commit` that hard-blocks commits to `master`. Activate it with the command above on first use in any environment. + **Primary branch: `main`** - ALL work merges to `main`. Never to `master` or any other branch. |
