We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 10875f2 + ff5e2b7 commit a74d387Copy full SHA for a74d387
scripts/commit-msg.hook
@@ -349,15 +349,15 @@ validate_commit_message() {
349
URL_REGEX='^[[:blank:]]*(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]*[-A-Za-z0-9+&@#/%=~_|]'
350
351
# Ensure the commit message lines are loaded into an array.
352
- readarray -t commit_msg_lines < "$COMMIT_MSG_FILE"
+ readarray -t COMMIT_MSG_LINES < "$COMMIT_MSG_FILE"
353
354
- for i in "${!commit_msg_lines[@]}"; do
+ for i in "${!COMMIT_MSG_LINES[@]}"; do
355
# Skip the first line (the subject) since the limit applies to the body.
356
if [ "$i" -eq 0 ]; then
357
continue
358
fi
359
360
- line="${commit_msg_lines[$i]}"
+ line="${COMMIT_MSG_LINES[$i]}"
361
362
# Skip lines that are comments.
363
if [[ "$line" =~ ^[[:space:]]*# ]]; then
0 commit comments