diff options
| author | Danilo M. <danix@danix.xyz> | 2026-05-13 21:06:05 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-05-13 21:06:05 +0200 |
| commit | 8788156ad0ecfe5c2e80bc9b305e9ab69f0d090a (patch) | |
| tree | 2521c720a74762e6ea4f973e247ff5fa4354a129 /CLAUDE.md | |
| parent | 5798158b4c826ac44b59369b45048be14ce171cd (diff) | |
| download | my-slackbuilds-8788156ad0ecfe5c2e80bc9b305e9ab69f0d090a.tar.gz my-slackbuilds-8788156ad0ecfe5c2e80bc9b305e9ab69f0d090a.zip | |
docs: document source archive check in pre-commit hook
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'CLAUDE.md')
| -rw-r--r-- | CLAUDE.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -97,17 +97,17 @@ Source: https://slackware.uk/~urchlay/repos/sbo-maintainer-tools ### Git hook setup -Both hooks are tracked in the `hooks/` directory. Install them after cloning: +Both hooks are tracked in the `.extras/hooks/` directory. Install them after cloning: ```bash -cp hooks/pre-commit .git/hooks/pre-commit -cp hooks/post-commit .git/hooks/post-commit +cp .extras/hooks/pre-commit .git/hooks/pre-commit +cp .extras/hooks/post-commit .git/hooks/post-commit chmod +x .git/hooks/pre-commit .git/hooks/post-commit ``` | Hook | Trigger | Purpose | |------|---------|---------| -| `pre-commit` | Before every commit | Runs `sbolint` on staged packages; blocks commit on errors | +| `pre-commit` | Before every commit | Runs `sbolint` on staged packages; blocks commit on errors. Also checks for staged source archives: symlinks are auto-removed, real files block the commit. | | `post-commit` | After every commit | Offers to create a `SBo/<pkg>.tar.gz` archive for submission | To bypass the pre-commit lint check in exceptional cases: |
