Skip to content

Commit 7ecd0d7

Browse files
update hooks path (#1331)
1 parent d12dad7 commit 7ecd0d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.claude/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"hooks": [
77
{
88
"type": "command",
9-
"command": "cd \"$(git rev-parse --show-toplevel)\" && if command -v python3 >/dev/null 2>&1; then python3 .claude/hooks/check-dangerous-commands.py; else python .claude/hooks/check-dangerous-commands.py; fi"
9+
"command": "cd \"$CLAUDE_PROJECT_DIR\" && if command -v python3 >/dev/null 2>&1; then python3 .claude/hooks/check-dangerous-commands.py; else python .claude/hooks/check-dangerous-commands.py; fi"
1010
}
1111
]
1212
},
@@ -15,7 +15,7 @@
1515
"hooks": [
1616
{
1717
"type": "command",
18-
"command": "cd \"$(git rev-parse --show-toplevel)\" && if command -v python3 >/dev/null 2>&1; then python3 .claude/hooks/check-secrets-file.py; else python .claude/hooks/check-secrets-file.py; fi"
18+
"command": "cd \"$CLAUDE_PROJECT_DIR\" && if command -v python3 >/dev/null 2>&1; then python3 .claude/hooks/check-secrets-file.py; else python .claude/hooks/check-secrets-file.py; fi"
1919
}
2020
]
2121
}

0 commit comments

Comments
 (0)