Skip to content

Commit 345853a

Browse files
committed
Fix: Hardcode test script path in pre-commit hook for reliability
1 parent 4806586 commit 345853a

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.githooks/pre-commit

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,10 @@ if [ -n "$STAGED_FILES" ]; then
9393
# Change to the project root
9494
cd "$PROJECT_ROOT" || exit 1
9595

96-
# Run the tests directly with full path
97-
bash "${PROJECT_ROOT}/scripts/test.sh"
96+
# Run the tests directly using a specific path
97+
FULL_PATH="/home/gregg/Projects/neovim/plugins/claude-code/scripts/test.sh"
98+
echo "Running test script at: $FULL_PATH"
99+
bash "$FULL_PATH"
98100

99101
# Check if tests passed
100102
if [ $? -ne 0 ]; then

lua/test_pre_commit.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-- Test file for Claude Code pre-commit

0 commit comments

Comments
 (0)