.git-hooks/commit-msg | 6 ------
1 file changed, 6 deletions(-)
New commits:
commit 6cd9bc8aa40791bd0cd5315134084b2319fa2a15
Author: Stephan Bergmann <[email protected]>
AuthorDate: Mon Feb 11 10:38:04 2019 +0100
Commit: Stephan Bergmann <[email protected]>
CommitDate: Wed Feb 13 10:24:26 2019 +0100
Remove unhelpful "Check for whitespace in front of *'s" from .git-hooks
It was added with 60f200caa44ddd42830eec3a98364facba71e6e1 "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 <[email protected]>
diff --git a/.git-hooks/commit-msg b/.git-hooks/commit-msg
index fb08d10be330..cf52ce307dda 100755
--- a/.git-hooks/commit-msg
+++ b/.git-hooks/commit-msg
@@ -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>'.
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits