Skip to content
Snippets Groups Projects
Commit ae202959 authored by Russell Taylor's avatar Russell Taylor
Browse files

Tweak message length check to avoid truncation on github. Re #3977.

...and this time remember to actually change the values that are used
in the check.
parent 5f4753b6
No related merge requests found
...@@ -62,12 +62,12 @@ msg_first() { ...@@ -62,12 +62,12 @@ msg_first() {
if test $len -eq 0; then if test $len -eq 0; then
# not yet first line # not yet first line
return return
elif test $len -lt 30; then elif test $len -lt 20; then
die 'The first line should be at least 25 characters (yours is '$len'): die 'Please make the first line at least 20 characters (yours is '$len'):
------------------------| -------------------|
'"$line"' '"$line"'
------------------------|' -------------------|'
elif test $len -gt 78 && ! msg_is_merge && ! msg_is_revert; then elif test $len -gt 70 && ! msg_is_merge && ! msg_is_revert; then
die 'The first line may be at most 70 characters (to fit on github summary page): die 'The first line may be at most 70 characters (to fit on github summary page):
---------------------------------------------------------------------| ---------------------------------------------------------------------|
'"$line"' '"$line"'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment