Skip to content

Commit 0177fff

Browse files
committed
chore: update pre-commit hook to exit on error
- Added 'set -e' to the pre-commit hook script to ensure it exits immediately if a command fails, enhancing error handling during the commit process.
1 parent 109780f commit 0177fff

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

mcp-server/scripts/hooks/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/sh
2+
set -e
23

34
# Auto-sync README tools table when server.ts changes
45
if git diff --cached --name-only | grep -q 'mcp-server/src/server\.ts'; then

0 commit comments

Comments
 (0)