Remove unhelpful "Check for whitespace in front of *'s" from .git-hooks
It was added with 60f200caa4
"git-hooks: Copy them
from the build repo", but I don't see its purpose, and it caused trouble for me
now when trying to commit <https://gerrit.libreoffice.org/67672> "Merge in
Flatpak improvements".
Change-Id: I922b5be87549793466f99db8b12be6081e683292
Reviewed-on: https://gerrit.libreoffice.org/67674
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
parent
74f9830db4
commit
6cd9bc8aa4
1 changed files with 0 additions and 6 deletions
|
@ -66,12 +66,6 @@ if [ -n "`head -n 1 $1 | grep '^[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}.*<.*@.*>'`" ] ;
|
|||
abort "$1" "The commit message looks like ChangeLog, please use the git form."
|
||||
fi
|
||||
|
||||
# Check for whitespace in front of *'s
|
||||
|
||||
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
|
||||
|
||||
# Check that lines do not start with '#<something>' (possibly accidental commit,
|
||||
# such as starting the message with '#ifdef', git commits start with '#<whitespace>'.
|
||||
|
||||
|
|
Loading…
Reference in a new issue