We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54f523b commit 28dac39Copy full SHA for 28dac39
src/commands/prepare-commit-msg.local
@@ -11,6 +11,12 @@ if [ -z "$hooks_dir" ]; then
11
exit 1
12
fi
13
14
+# Check if the global hooks directory exists
15
+if [ ! -d "$hooks_dir" ]; then
16
+ printf "Error: Global hooks directory does not exist" >&2
17
+ exit 1
18
+fi
19
+
20
# Invoke the prepare-commit-msg hook from the global hooks directory
21
hook_path="$hooks_dir/prepare-commit-msg"
22
if [ -x "$hook_path" ]; then
0 commit comments