mirror of
https://github.com/openclaw/openclaw.git
synced 2026-09-28 05:54:09 +08:00
* chore: block restricted literals in local commits * fix: fully redact overlapping private literals
10 lines
271 B
Bash
Executable File
10 lines
271 B
Bash
Executable File
#!/usr/bin/env bash
|
|
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
|