File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,9 +35,15 @@ corrected=''
3535ok=true
3636line_count=0
3737while IFS=' ' read -r line || [[ -n " $line " ]]; do
38- if (( "$line_count " == 0 )) && (( "${# line} " > "$MAX_SUBJECT_LENGTH " )) && [[ " $line " != \# * ]]; then
39- echo " error: the subject must be less than or equal to $MAX_SUBJECT_LENGTH characters" >&2
40- exit 1
38+ if (( "$line_count " == 0 )) && [[ " $line " != \# * ]]; then
39+ if [[ " $line " == fixup\! * ]] || [[ " $line " == Merge* ]]; then
40+ exit 0
41+ elif (( "${# line} " > "$MAX_SUBJECT_LENGTH " )) ; then
42+ echo " error: the subject must be less than or equal to $MAX_SUBJECT_LENGTH characters" >&2
43+ exit 1
44+ fi
45+ corrected=" $line \n"
46+ (( line_count++ ))
4147 elif (( "$line_count " == 1 )) && (( "${# line} " > "0 " )) && [[ " $line " != \# * ]]; then
4248 echo " error: the subject and body must be separated by a blank line" >&2
4349 exit 1
You can’t perform that action at this time.
0 commit comments