Download git-hooks/pre-commit from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 271 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/git-hooks/pre-commit
- Command line
-
hf download hf://SaylorTwift/openclaw/git-hooks/pre-commit
-
curl -L -o pre-commit https://huggingface.co/SaylorTwift/openclaw/resolve/main/git-hooks/pre-commit
271 Bytes
| set -euo pipefail | |
| ROOT_DIR="$(git rev-parse --show-toplevel 2>/dev/null)" || { | |
| echo '[pre-commit] Cannot locate the checkout root. Check the repository and retry.' >&2 | |
| exit 1 | |
| } | |
| cd "$ROOT_DIR" | |
| exec node scripts/pre-commit/guard-staged-content.mjs | |