refactor: move all remaining files to orig/ directory
Completed clean root directory structure: - Root now contains only: .git, .env, docs/, orig/ - Moved all remaining files and directories to orig/: - Config files (.claude, .dockerignore, .drone.yml, etc.) - All .env variants (except active .env) - Git config (.gitconfig, .github, .gitignore, etc.) - Tool configs (.golangci.yml, .revive.toml, etc.) - Documentation (*.md files, @prompts) - Build files (Dockerfiles, Makefile, go.mod, go.sum) - Docker compose files - All source directories (scripts, tests, tools, etc.) - Runtime directories (logs, monitoring, reports) - Dependency files (node_modules, lib, cache) - Special files (--delete) - Removed empty runtime directories (bin/, data/) V2 structure is now clean: - docs/planning/ - V2 planning documents - orig/ - Complete V1 codebase preserved - .env - Active environment config (not in git) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
46
orig/scripts/install-git-hooks.sh
Executable file
46
orig/scripts/install-git-hooks.sh
Executable file
@@ -0,0 +1,46 @@
|
||||
#!/bin/bash
|
||||
# Install Git Hooks for Auto-Update
|
||||
|
||||
set -e
|
||||
|
||||
PROJECT_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||||
HOOKS_SRC_DIR="$PROJECT_DIR/scripts/git-hooks"
|
||||
HOOKS_DEST_DIR="$PROJECT_DIR/.git/hooks"
|
||||
|
||||
echo "========================================="
|
||||
echo "Installing Git Hooks"
|
||||
echo "========================================="
|
||||
echo ""
|
||||
|
||||
# Check if .git directory exists
|
||||
if [ ! -d "$PROJECT_DIR/.git" ]; then
|
||||
echo "Error: Not a git repository"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Create hooks directory if it doesn't exist
|
||||
mkdir -p "$HOOKS_DEST_DIR"
|
||||
|
||||
# Install post-merge hook
|
||||
if [ -f "$HOOKS_SRC_DIR/post-merge" ]; then
|
||||
echo "Installing post-merge hook..."
|
||||
cp "$HOOKS_SRC_DIR/post-merge" "$HOOKS_DEST_DIR/post-merge"
|
||||
chmod +x "$HOOKS_DEST_DIR/post-merge"
|
||||
echo "✓ post-merge hook installed"
|
||||
else
|
||||
echo "✗ post-merge hook not found at $HOOKS_SRC_DIR/post-merge"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "========================================="
|
||||
echo "Git Hooks Installed Successfully!"
|
||||
echo "========================================="
|
||||
echo ""
|
||||
echo "The following hooks are now active:"
|
||||
echo " - post-merge: Auto-rebuild and restart after 'git pull'"
|
||||
echo ""
|
||||
echo "Hooks will run automatically when you:"
|
||||
echo " - Run 'git pull'"
|
||||
echo " - Run './scripts/auto-update.sh'"
|
||||
echo ""
|
||||
Reference in New Issue
Block a user