File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -349,15 +349,15 @@ validate_commit_message() {
349
349
URL_REGEX=' ^[[:blank:]]*(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]*[-A-Za-z0-9+&@#/%=~_|]'
350
350
351
351
# Ensure the commit message lines are loaded into an array.
352
- readarray -t commit_msg_lines < " $COMMIT_MSG_FILE "
352
+ readarray -t COMMIT_MSG_LINES < " $COMMIT_MSG_FILE "
353
353
354
- for i in " ${! commit_msg_lines [@]} " ; do
354
+ for i in " ${! COMMIT_MSG_LINES [@]} " ; do
355
355
# Skip the first line (the subject) since the limit applies to the body.
356
356
if [ " $i " -eq 0 ]; then
357
357
continue
358
358
fi
359
359
360
- line=" ${commit_msg_lines [$i]} "
360
+ line=" ${COMMIT_MSG_LINES [$i]} "
361
361
362
362
# Skip lines that are comments.
363
363
if [[ " $line " =~ ^[[:space:]]* # ]]; then
You can’t perform that action at this time.
0 commit comments