本仓 2026-08-12 从 ssw main (192.168.1.18:13300/ssw/ssw-mvp) 的 dacli/ subpath 抽取,作为独立仓托管到 gitea:3000/ssw/dacli.git。 - 工作树为 ssw main dacli subpath 最新版 (110 commit, 08-12) - 历史未带 ssw main 整体历史(避免大仓污染) - 此为新仓基线 commit,未来以本仓历史为主
11 lines
436 B
Bash
Executable File
11 lines
436 B
Bash
Executable File
#!/bin/sh
|
|
# 激活 dacli 版本受控 git hooks (P3, 2026-07-24)
|
|
# 用法: sh scripts/install-hooks.sh
|
|
set -e
|
|
ROOT="$(git rev-parse --show-toplevel)"
|
|
cd "$ROOT"
|
|
chmod +x scripts/githooks/* scripts/quality-gate.sh 2>/dev/null || true
|
|
git config core.hooksPath scripts/githooks
|
|
echo "✅ core.hooksPath = scripts/githooks (真质量门已激活: tsc+vitest+smoke)"
|
|
echo " 验证: 故意加一个类型错误后 git commit 应被阻塞"
|