Kaydet (Commit) 81dbafd1 authored tarafından Miklos Vajna's avatar Miklos Vajna

git-hooks: commit-msg should not search for whitespace in the diff itself

The additional sed removes every line after seeing the first line
starting with a #, just like git will do it later as well.

See: http://article.gmane.org/gmane.comp.documentfoundation.libreoffice.devel/26794
üst 04cae9ec
......@@ -57,7 +57,7 @@ fi
# Check for whitespace in front of *'s
if [ -n "`grep '^[[:space:]]\+\*.*:' $1`" -a -z "`grep '^\*' $1`" ] ; then
if [ -n "`sed '/^#/,$d' $1 | grep '^[[:space:]]\+\*.*:'`" -a -z "`grep '^\*' $1`" ] ; then
abort "$1" "Please don't use whitespace in front of '* file: Description.' entries."
fi
......
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