From 6e99e703102965accafc3a740c44d38adef87da0 Mon Sep 17 00:00:00 2001 From: Andrii Horishnii Date: Wed, 1 Apr 2026 16:19:39 +0300 Subject: [PATCH] Use global pre-commit hook MOB-5148 --- .git-hooks/pre-commit | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit index 3b49b53..c5b7aca 100755 --- a/.git-hooks/pre-commit +++ b/.git-hooks/pre-commit @@ -1,5 +1,11 @@ #!/bin/bash +# Use the global pre-commit hook if it exists, otherwise run the local secret scanner +if [ -x "$HOME/.git-hooks/pre-commit" ]; then + "$HOME/.git-hooks/pre-commit" + exit $? +fi + # Check if required tools are installed MISSING_TOOLS=false