From 210be65977a2f190fe91ac488e32a348773f5806 Mon Sep 17 00:00:00 2001 From: carlos-alm Date: Thu, 30 Jul 2026 04:12:31 -0700 Subject: [PATCH] fix(hooks): point post-git-ops.sh fallback at dist/cli.js, not src/cli.js (#1979) Same broken fallback build path already fixed for update-graph.sh in #1836: src/cli.js has never existed in this repo (CLI entry point is TypeScript at src/cli.ts, compiled to dist/cli.js). The else branch (hit when the codegraph binary isn't on PATH) silently failed (stderr to /dev/null), so BUILD_OK stayed 0 and the full rebuild after a rebase/merge/pull never happened for contributors without a global codegraph install. Closes #1979 docs check acknowledged: hook-script-only fix, no README/CLAUDE.md/ROADMAP surface change --- .claude/hooks/post-git-ops.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.claude/hooks/post-git-ops.sh b/.claude/hooks/post-git-ops.sh index 62cb24ac3..d945fd6dd 100644 --- a/.claude/hooks/post-git-ops.sh +++ b/.claude/hooks/post-git-ops.sh @@ -44,7 +44,7 @@ if [ -f "$DB_PATH" ]; then if command -v codegraph &>/dev/null; then codegraph build "$PROJECT_DIR" -d "$DB_PATH" --no-incremental 2>/dev/null && BUILD_OK=1 || true else - node "${CLAUDE_PROJECT_DIR:-$PROJECT_DIR}/src/cli.js" build "$PROJECT_DIR" -d "$DB_PATH" --no-incremental 2>/dev/null && BUILD_OK=1 || true + node "${CLAUDE_PROJECT_DIR:-$PROJECT_DIR}/dist/cli.js" build "$PROJECT_DIR" -d "$DB_PATH" --no-incremental 2>/dev/null && BUILD_OK=1 || true fi # Update staleness marker only if the full rebuild succeeded if [ "$BUILD_OK" -eq 1 ]; then