Services: Admin-Lehrer, Backend-Lehrer, Studio v2, Website, Klausur-Service, School-Service, Voice-Service, Geo-Service, BreakPilot Drive, Agent-Core Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
469 B
Bash
Executable File
22 lines
469 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Setup git hooks for studio-v2
|
|
#
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
|
|
echo "Setting up git hooks for studio-v2..."
|
|
|
|
# Make hooks executable
|
|
chmod +x "$SCRIPT_DIR/pre-push"
|
|
|
|
# Configure git to use custom hooks directory
|
|
git config core.hooksPath .git-hooks
|
|
|
|
echo "Git hooks installed successfully!"
|
|
echo ""
|
|
echo "Hooks enabled:"
|
|
echo " - pre-push: Runs E2E tests before pushing"
|
|
echo ""
|
|
echo "To disable hooks temporarily: git push --no-verify"
|