fix(install): resolve git hooks dir via git plumbing, fix stale plugin manifests #72

Merged
Defame1297 merged 2 commits from fix/plugin-manifest-and-worktree-hooks into main 2026-07-05 12:59:19 +00:00
Showing only changes of commit ba53e6544b - Show all commits

View File

@@ -3,6 +3,12 @@
# Runs install.sh from a temp repo to avoid touching the real .git/hooks/.
set -euo pipefail
# This script may itself run inside a git hook (e.g. pre-push), which sets
# GIT_DIR/GIT_EXEC_PATH/etc. in the environment. `git init`/`git -C` below
# would silently re-target the inherited GIT_DIR instead of creating an
# isolated repo in $TEMP_REPO, so start from a clean slate.
for var in $(compgen -v | grep '^GIT_'); do unset "$var"; done
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
PASS=0
FAIL=0