aboutsummaryrefslogtreecommitdiff
path: root/githooks/pre-commit
diff options
context:
space:
mode:
Diffstat (limited to 'githooks/pre-commit')
-rwxr-xr-xgithooks/pre-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/githooks/pre-commit b/githooks/pre-commit
index 27f280c3..2c0cf0b0 100755
--- a/githooks/pre-commit
+++ b/githooks/pre-commit
@@ -5,7 +5,7 @@
set -u
REPO_ROOT="$(git rev-parse --show-toplevel)"
-cd "$REPO_ROOT"
+cd "$REPO_ROOT" || exit 1
# --- 1. Secret scan ---
# Patterns for common credentials. Scans only added lines in the staged diff.