From b2b50804bf5bf18b272f0d6dd6b60c25ccc3bc0d Mon Sep 17 00:00:00 2001 From: Adam Moussa Date: Wed, 15 Jul 2026 19:18:35 -0400 Subject: [PATCH] Fix stale review.sh default path in hook templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 2026-07-09 directory reorg moved this repo under seahaven/, but the hook templates' default REVIEW_SH path still pointed at the old location. Every install-hooks.sh --global run since then re-installed hooks that fail open ("review.sh not found — skipping gate") on every push. The live hooks on this machine were re-pointed manually 2026-07-15; this fixes the source so the next install doesn't regress. Refs: INFRA-107 --- hooks/pre-commit | 2 +- hooks/pre-push | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/pre-commit b/hooks/pre-commit index 25a1a71..7779d22 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -6,7 +6,7 @@ set -uo pipefail REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null)" || exit 0 [ -f "$REPO_ROOT/.security-review-skip" ] && exit 0 -REVIEW_SH="${SH_REVIEW_SH:-$HOME/Documents/repositories/security-review/review.sh}" +REVIEW_SH="${SH_REVIEW_SH:-$HOME/Documents/repositories/seahaven/security-review/review.sh}" if [ ! -f "$REVIEW_SH" ]; then echo "security-review: review.sh not found at $REVIEW_SH (set SH_REVIEW_SH to override) — skipping" >&2 exit 0 diff --git a/hooks/pre-push b/hooks/pre-push index e2b2873..b638ccf 100755 --- a/hooks/pre-push +++ b/hooks/pre-push @@ -7,7 +7,7 @@ set -uo pipefail REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null)" || exit 0 [ -f "$REPO_ROOT/.security-review-skip" ] && exit 0 -REVIEW_SH="${SH_REVIEW_SH:-$HOME/Documents/repositories/security-review/review.sh}" +REVIEW_SH="${SH_REVIEW_SH:-$HOME/Documents/repositories/seahaven/security-review/review.sh}" if [ -f "$REVIEW_SH" ]; then SUP=() # Suppressions: prefer a MACHINE-LEVEL file kept out of repo history