增加本地推送前代码检查钩子

This commit is contained in:
yml2213
2026-08-31 12:41:07 +08:00
parent cfabfa8f65
commit 1ee7d17712
3 changed files with 48 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
git -C "$ROOT_DIR" config core.hooksPath .githooks
echo "已启用 .githooks(推送前执行 scripts/check.shSKIP_CHECKS=1 可跳过)"