Files
breakpilot-lehrer/studio-v2/.git-hooks/setup.sh
Benjamin Boenisch 5a31f52310 Initial commit: breakpilot-lehrer - Lehrer KI Platform
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>
2026-02-11 23:47:26 +01:00

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"