You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .githooks/commit-msg
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@
11
11
# - On retry, if M40LLM_COMMIT_NONCE matches the computed nonce for the current staged
12
12
# diff and message, allow the commit without interaction.
13
13
14
-
set -u
14
+
set -uuo pipefail
15
15
MSG_FILE="$1"
16
16
17
17
# 1) Reject literal \n sequences
@@ -67,6 +67,8 @@ echo "[commit-msg] 1) Does the commit message properly represent what changed A
67
67
echo"[commit-msg] 2) Does it have the correct Conventional Commits type for what changed?">&2
68
68
echo"[commit-msg] If either answer is NO: revise the commit message (and/or type) and try 'git commit' again. A new nonce will be shown for the revised message.">&2
69
69
echo"[commit-msg] Only if BOTH answers are YES, finalize the commit by re-running with the nonce, for example:">&2
0 commit comments