Files
clawdbot/git-hooks/pre-commit
2026-01-19 02:02:17 +00:00

5 lines
123 B
Bash
Executable File

#!/bin/sh
ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
[ -z "$ROOT" ] && exit 0
node "$ROOT/scripts/format-staged.js"