mirror of
https://github.com/EvovexAI/EvoFlow.git
synced 2026-11-22 18:37:57 +08:00
Clean public baseline for EvovexAI/EvoFlow: public-only CI, no private sync tooling, no Haze-Ctrl branding, and scrubbed non-public skills/docs leftovers.
16 lines
691 B
Bash
16 lines
691 B
Bash
#!/usr/bin/env bash
|
|
# One-time per clone: point Git at versioned hooks so `git commit` runs pre-commit without copying files.
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
cd "$ROOT"
|
|
|
|
git config core.hooksPath scripts/git-hooks
|
|
|
|
# Help Unix Git actually exec hook + ci-local (Windows Git often ignores +x for .sh)
|
|
chmod +x "$ROOT/scripts/git-hooks/pre-commit" "$ROOT/scripts/ci-local.sh" 2>/dev/null || true
|
|
|
|
echo "OK: this repo now uses hooks from scripts/git-hooks/"
|
|
echo " $(git config core.hooksPath)"
|
|
echo "pre-commit: ci-local --quick (backend lint + evopanel tsc when deps installed)."
|
|
echo "Full CI (tests + evopanel test/build + docs): make ci-local"
|