Kaydet (Commit) 058c54d5 authored tarafından Miklos Vajna's avatar Miklos Vajna

git-hooks: show length of first line if it's too long

Change-Id: I164e4308c2a3e685bbc83cfde1cae5189839075e
Reviewed-on: https://gerrit.libreoffice.org/73556Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
üst 722041b4
...@@ -41,8 +41,9 @@ fi ...@@ -41,8 +41,9 @@ fi
# ...and that it is not too long # ...and that it is not too long
if [ "`head -n 1 $1 | wc -c`" -gt 79 ] ; then len="`head -n 1 $1 | wc -c`"
abort "$1" "The first line is too long, please try to fit into 79 characters." if [ "$len" -gt 79 ] ; then
abort "$1" "The first line is $len characters, please try to fit into 79 characters."
fi fi
fdo_regex='fdo#[0-9]+' fdo_regex='fdo#[0-9]+'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment