diff options
-rwxr-xr-x | .git-hooks/commit-msg | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.git-hooks/commit-msg b/.git-hooks/commit-msg index cf52ce307dda..64fb7924956b 100755 --- a/.git-hooks/commit-msg +++ b/.git-hooks/commit-msg @@ -41,8 +41,9 @@ fi # ...and that it is not too long -if [ "`head -n 1 $1 | wc -c`" -gt 79 ] ; then - abort "$1" "The first line is too long, please try to fit into 79 characters." +len="`head -n 1 $1 | wc -c`" +if [ "$len" -gt 79 ] ; then + abort "$1" "The first line is $len characters, please try to fit into 79 characters." fi fdo_regex='fdo#[0-9]+' |