#!/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"
